Bug 54974 - SessionCookieConfig.setXXX methods must throw IllegalStateException when invoked after initialization phase
Summary: SessionCookieConfig.setXXX methods must throw IllegalStateException when invo...
Status: RESOLVED FIXED
Alias: None
Product: Tomcat 7
Classification: Unclassified
Component: Catalina (show other bugs)
Version: 7.0.40
Hardware: PC All
: P2 normal (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
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.