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

Session tracking with URL and FORM based login does not work

XMLWordPrintable

    • Hide

      Deploy web application using URL session tracking and FORM based login to Wildfly 9.0.1.Final. Try to log in. Fail.

      Show
      Deploy web application using URL session tracking and FORM based login to Wildfly 9.0.1.Final. Try to log in. Fail.

      It is impossible to log in to a web application that is configured to use URL based session tracking and FORM based login.

      Opening a secured page redirects correctly to the login page, and login form action is produced correctly with HttpServletResponse.encodeURL: result is "j_security_check;jsessionid=xxx".

      However, undertow refuses to handle the request to j_security_check;jsessionid=xxxx. The result is HTTP error 405, POST not supported.

      Similar problem occurs if the login form is posted using GET, or the login page forwards to j_security_check using sendRedirect with URL parameters. In this case undertow responds to j_security_check?foo=bar&and=so_on with HTTP error 404.

            sdouglas1@redhat.com Stuart Douglas
            armihu Arto Huusko (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: