[JAVASERVERFACES_SPEC_PUBLIC-964] ExternalContext.get/setSessionMaxInactiveInterval documentation mention HttpServletRequest, but it should be HttpSession Created: 01/Apr/11  Updated: 17/Sep/14  Resolved: 17/Sep/14

Status: Resolved
Project: javaserverfaces-spec-public
Component/s: Documentation: Javadoc, TLDDoc, RenderkitDoc, PDF
Affects Version/s: 2.1
Fix Version/s: 2.3

Type: Bug Priority: Critical
Reporter: lu4242 Assignee: Manfred Riem
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: Text File changebundle.txt    
Status Whiteboard:

size_small importance_medium


The documentation of ExternalContext.getSessionMaxInactiveInterval says this:

"... Returns the maximum time interval, in seconds, that the servlet container will keep this session open between client accesses. After this interval, the servlet container will invalidate the session. The maximum time interval can be set with the setSessionMaxInactiveInterval(int) method.

A return value of zero or less indicates that the session will never timeout.

Servlet: This must return the result of calling getMaxInactiveInterval on the underlying javax.servlet.http.HttpServletRequest instance.

The default implementation throws UnsupportedOperationException and is provided for the sole purpose of not breaking existing applications that extend this class. ..."

I checked if HttpServletRequest has getMaxInactiveInterval method but the class with that method is HttpSession.

I suppose it is a bug on the javadoc.

Comment by Ed Burns [ 01/Aug/14 ]

Set priority to baseline ahead of JSF 2.3 triage. Priorities will be assigned accurately after this exercise.

Comment by Manfred Riem [ 17/Sep/14 ]

Applied to 2.3 trunk,

svn commit -m "Fixes https://java.net/jira/browse/JAVASERVERFACES_SPEC_PUBLIC-964, make sure it correctly states HttpSession."
Sending jsf-api/src/main/java/javax/faces/context/ExternalContext.java
Transmitting file data .
Committed revision 13690.

Generated at Mon Feb 20 09:35:37 UTC 2017 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.