javaserverfaces-spec-public
  1. javaserverfaces-spec-public
  2. JAVASERVERFACES_SPEC_PUBLIC-964

ExternalContext.get/setSessionMaxInactiveInterval documentation mention HttpServletRequest, but it should be HttpSession

    Details

    • Status Whiteboard:
      Hide

      size_small importance_medium

      Show
      size_small importance_medium

      Description

      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.

        Activity

        Hide
        Manfred Riem added a comment -

        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.

        Show
        Manfred Riem added a comment - 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.
        Hide
        Ed Burns added a comment -

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

        Show
        Ed Burns added a comment - Set priority to baseline ahead of JSF 2.3 triage. Priorities will be assigned accurately after this exercise.

          People

          • Assignee:
            Manfred Riem
            Reporter:
            lu4242
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: