Uploaded image for project: 'Undertow'
  1. Undertow
  2. UNDERTOW-1575

HttpServletRequest.getRequestedSessionId() incorrectly returns a newly generated session id instead of the requested session id when session tracking mode is set to URL

XMLWordPrintable

      HttpServletRequest.getRequestedSessionID() is incorrectly returning a newly generated session ID instead of the requested ID in EAP 7 when using URL session tracking.

      Reproduction:

      It makes two calls to request.getRequestedSessionId(), one before creating a session and one after.
      These should both print null (since no jsessionid was passed on the URL). But instead the second prints the new ID.

      Or access http://localhost:8080/test/;jsessionid=test
      This should print "test" twice, but instead the second prints the new ID.

      The issue appears to be specific to URL session tracking, and was not reproduced when using COOKIE tracking.

      The issue is specific to EAP 7 and does not occur on EAP 6.

        1. test.war
          0.8 kB
          Teresa Miyar Gil

              rhn-support-mmiura Masafumi Miura
              rhn-support-tmiyargi Teresa Miyar Gil (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: