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

UrlRenderer appends './' also to URLs that start with '/'

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Duplicate
    • 6.7.0
    • None
    • None
    • None

    Description

      URL are not correctly rendered when we move from a stateless navigation (no permanent session bound) to a stateful page. To reproduce the problem do the following steps:

      1. start wicket-examples module and be sure to not have any cached data or cookies of this application on your browser.
      2. navigate to wicket-examples application and go to ajax examples page
      3. navigate to one of the example, for example 'Auto-Complete TextField Example'. At this point a persistent session is created and the jsessionid attribute is visible in the URL bar
      4. now if you try to click on [go back] you will get an arror as its anchor is not valid

      The problem is inside UrlREnderer. We should add an additional test in the if after comment 'sanitize start' to check that URL doesn't start with '/'

      See attached patch.

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            mgrigorov Martin Tzvetanov Grigorov
            bitstorm Andrea Del Bene
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment