[
https://issues.apache.org/jira/browse/WICKET-4260?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13246356#comment-13246356
]
Chris Colman edited comment on WICKET-4260 at 4/4/12 3:23 PM:
--------------------------------------------------------------
Some observations:
Here's the requests that the server sees - both get redirects to the logon page
which is correct because the user is not yet authenticated
IE browser requesting /landing
127.0.0.1 - - [05/Apr/2012:01:16:13 +1000] "GET /landing HTTP/1.1" 302 -
127.0.0.1 - - [05/Apr/2012:01:16:13 +1000] "GET /./logon?3 HTTP/1.1" 404 976
FireFox browser requesting /landing
127.0.0.1 - - [05/Apr/2012:01:18:12 +1000] "GET /landing HTTP/1.1" 302 -
127.0.0.1 - - [05/Apr/2012:01:18:12 +1000] "GET /logon?2 HTTP/1.1" 200 1619
was (Author: chrisc):
Some observations:
Typing URLs containing an intermediate './' (eg., thingy.com.au/./landing)
directly into browsers I observed the following:
FireFox and Chrome gets a redirect back from the server to the same URL but
with the './' automatically removed - which would explain why they work with
Tomcat.
IE gets a redirect back from the server that contains the ./ which the web app
does not recognize as a known path and so throws a 404 error.
Here's the requests that the server sees:
IE browser requesting /landing
127.0.0.1 - - [05/Apr/2012:01:16:13 +1000] "GET /landing HTTP/1.1" 302 -
127.0.0.1 - - [05/Apr/2012:01:16:13 +1000] "GET /./logon?3 HTTP/1.1" 404 976
FireFox browser requesting /landing
127.0.0.1 - - [05/Apr/2012:01:18:12 +1000] "GET /landing HTTP/1.1" 302 -
127.0.0.1 - - [05/Apr/2012:01:18:12 +1000] "GET /logon?2 HTTP/1.1" 200 1619
> UrlRenderer renders invalid relative URLs if first segment contains colon
> -------------------------------------------------------------------------
>
> Key: WICKET-4260
> URL: https://issues.apache.org/jira/browse/WICKET-4260
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.5.3
> Reporter: Andreas Köhler
> Assignee: Sven Meier
> Fix For: 1.5.6, 6.0.0-beta1
>
> Attachments: WICKET-4260.diff, WICKET-4260.path, ieDotSlashBug.zip,
> wicket-4260.tar.bz2
>
>
> Seen on Wicket 1.5.3.
> If a relative url of a link starts with a path segment containing a colon
> then the whole uri will be regarded as absolute uri, so typically browsers
> will complain that there is no handle for the protocol foo in foo:bar/dee/per.
> See also the attached quickstart. The start page contains three links, one
> relative with colon, one absolute and one to a mounted page without colon for
> comparison.
> The application also has a static switch to add an extended urlrenderer,
> prepending "./" if needed. This fix is merely a quick shot and there might be
> better alternatives.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira