You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Chris Colman (Updated) (JIRA)" <ji...@apache.org> on 2012/04/04 14:16:23 UTC
[jira] [Updated] (WICKET-4260) UrlRenderer renders invalid relative
URLs if first segment contains colon
[ https://issues.apache.org/jira/browse/WICKET-4260?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Chris Colman updated WICKET-4260:
---------------------------------
Attachment: ieDotSlashBug.zip
Quickstart that shows IE problem with extra ./ inserted before path when /landing page is redirected to /logon page if not authenticated.
Happens on IE 8 (and possibly other IE versions)
Does not happen on FireFox nor Chrome.
Does not happen when running on Jetty
Happens on Tomcat BUT only when app is installed as a virtual host - it does not happen when the app is installed as a servlet in the root context/host.
Using the quickstart create a .war using mvn war:war
Create an entry in your hosts file:
127.0.0.1 thingy.com.au
Rename the .war to ROOT.war and place under:
<tomcat>/virtualhosts/thingy
Add new host element to server.xml:
<Host name="thingy.com.au" debug="0" appBase="virtualhosts/thingy" unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false">
<Valve className="org.apache.catalina.valves.FastCommonAccessLogValve"
directory="logs" prefix="thing_access_log." suffix=".txt"
pattern="common" resolveHosts="false"/>
<Context path="/manager" debug="5" docBase="/servers/tomcat/webapps/manager" privileged="true"/>
</Host>
To reproduce:
Point your IE browser to:
http://thingy.com.au/landing
this will attempt a redirect to thingy.com.au/logon
which should display the error.
Hit refresh and the logon page will display. Click on Logon link and problem should display again. Hit refresh and landing page will now display properly.
> 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