Bug 54974 - SessionCookieConfig.setXXX methods must throw IllegalStateException when invoked after initialization phase
SessionCookieConfig.setXXX methods must throw IllegalStateException when invo...
Status: RESOLVED FIXED
Product: Tomcat 7
Classification: Unclassified
Component: Catalina
7.0.40
PC All
: P2 normal (vote)
: ---
Assigned To: Tomcat Developers Mailing List
:
Depends on:
Blocks:
  Show dependency tree
 
Reported: 2013-05-15 08:23 UTC by Violeta Georgieva
Modified: 2013-05-15 12:18 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Violeta Georgieva 2013-05-15 08:23:39 UTC
According to Servlet 3.0 javadoc 
javax.servlet.SessionCookieConfig setter methods must throw IllegalStateException when invoked after initialization phase

setComment(String) 
setDomain(String)
setHttpOnly(boolean)
setMaxAge(int)
setName(String) 
setPath(String)
setSecure(boolean)

"
Throws: java.lang.IllegalStateException - if the ServletContext from which this SessionCookieConfig was acquired has already been initialized
"
Comment 1 Violeta Georgieva 2013-05-15 12:18:43 UTC
Fixed in trunk and 7.0.x and will be included in 7.0.41 onwards.