Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-6432

SignInPanel causes infinite redirect loop if session id is suppressed in URL

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 7.8.0
    • None
    • wicket-auth-roles
    • None

    Description

      The attached, very simple quickstart causes an infinite redirection loop. It consists of a AuthenticatedPage, which is annotated by @AuthorizeInstantiation, and a LoginPage, using a SingInPanel, which is set up as home page.
      The trouble begins if one opens the HTTP URL after signing in with HTTPS.
      It happens only if Jetty is forced to suppress the session id as URL parameter (see Jetty 9.2.X documentation):

          WebAppContext bb = new WebAppContext();
      
          // The following line causes the trouble
          bb.setInitParameter("org.eclipse.jetty.servlet.SessionIdPathParameterName", "none");
      

      Steps to reproduce:

      1. Start the application in test/java/quickstart/Start
      2. Open https://localhost:8443
      3. Sign in using "user" and "password"
      4. After redirected to the AuthenticatedPage, open http://localhost:8080

      Attachments

        1. redirect-loop.zip
          26 kB
          Simon Erhardt

        Activity

          People

            mgrigorov Martin Tzvetanov Grigorov
            simon.erhardt Simon Erhardt
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: