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

Infinite redirection when using UrlPathPageParametersEncoder

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 6.22.0, 6.24.0
    • 8.0.0-M2, 6.25.0, 7.5.0
    • wicket
    • None

    Description

      When you mount page with UrlPathPageParametersEncoder:

      mount(new MountedMapper("/test", TestPage.class, new UrlPathPageParametersEncoder()));
      

      and then user pass a special parameter value in url which ends with more than one dot and slash (eg. "../", ".../", etc.) then application starts endless redirects. It leads to error in browser such as:

      The page isn’t redirecting properly

      Without last slash everything works ok.

      I have attached a quickstart. Run this application and enter the following url in your browser:

      http://localhost:8080/test/text/aaa.../
      

      Attachments

        1. mountingtest.zip
          25 kB
          Daniel Stoch

        Issue Links

          Activity

            People

              mgrigorov Martin Tzvetanov Grigorov
              interface Daniel Stoch
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: