You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Cedric Gatay (JIRA)" <ji...@apache.org> on 2013/04/07 15:09:15 UTC
[jira] [Updated] (WICKET-5114) Url#toString(StringMode.FULL) throws
exception if a segment contains two dots
[ https://issues.apache.org/jira/browse/WICKET-5114?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Cedric Gatay updated WICKET-5114:
---------------------------------
Attachment: fix-WICKET-5114.patch
Added two tests regarding this issue and corrected the bogus part checking if the path was containing two dots with a segment check.
> Url#toString(StringMode.FULL) throws exception if a segment contains two dots
> -----------------------------------------------------------------------------
>
> Key: WICKET-5114
> URL: https://issues.apache.org/jira/browse/WICKET-5114
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 6.5.0
> Reporter: Peter Parson
> Attachments: fix-WICKET-5114.patch
>
>
> When invoking toString(StringMode.FULL) for a URL like
> /mountPoint/whatever.../
> an IllegalStateException is thrown with message: Cannot render this url in FULL mode because it has a `..` segment: /mountPoint/whatever.../
> The method does not actually check for `..` segments but rather checks whether path.contains("..")
--
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