[
https://issues.apache.org/jira/browse/WICKET-4260?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13159272#comment-13159272
]
Pedro Santos commented on WICKET-4260:
--------------------------------------
Quoting the RFC 2396 at http://www.ietf.org/rfc/rfc2396.txt
" Authors should be aware that a path segment which contains a colon
character cannot be used as the first segment of a relative URI path
(e.g., "this:that"), because it would be mistaken for a scheme name."
Sounds like it would make sense if we improve the
UrlRenderer#shouldRenderAsFull method to return true if the first segment has a
colon. Fix this ticket but may break some apps because users may have code
expecting relative URLs.
> 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
> Attachments: WICKET-4260.path, 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