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

Url interception doesn't work if the "intercepting" page is stateless

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.5-M3
    • 1.5-RC1
    • wicket
    • None

    Description

      wicket-examples -> authentication2 is broken.

      The problem is that trying to request Home page ("/") is not allowed for not authenticated users and the security strategy intercepts the request and renders Sign2 page ("wicket/bookmarkable/org.apache.wicket.examples.authentication2.SignIn2") and later WebPageRenderer directly renders Sign2 page in the current response because this page is stateless (redirect_to_xyz is not used for stateless pages).
      The final problem is that the relative urls in the page are broken because they were calculated against "wicket/bookmarkable/org.apache.wicket.examples.authentication2.SignIn2" but the browser still uses "/".

      Attachments

        Issue Links

          Activity

            People

              mgrigorov Martin Tzvetanov Grigorov
              mgrigorov Martin Tzvetanov Grigorov
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: