You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Andrea Del Bene (JIRA)" <ji...@apache.org> on 2013/05/21 00:37:16 UTC

[jira] [Created] (WICKET-5193) UrlRenderer append './' also to URLs that start with '/'

Andrea Del Bene created WICKET-5193:
---------------------------------------

             Summary: UrlRenderer append './' also to URLs that start with '/'
                 Key: WICKET-5193
                 URL: https://issues.apache.org/jira/browse/WICKET-5193
             Project: Wicket
          Issue Type: Bug
    Affects Versions: 6.7.0
            Reporter: Andrea Del Bene
            Priority: Minor


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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira