You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Sven Meier (JIRA)" <ji...@apache.org> on 2012/11/28 18:06:58 UTC
[jira] [Closed] (WICKET-4891) UrlRenderer.renderRelativeUrl
misbehavior if the filterPath is composed.
[ https://issues.apache.org/jira/browse/WICKET-4891?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sven Meier closed WICKET-4891.
------------------------------
Resolution: Fixed
Fix Version/s: 6.4.0
Assignee: Sven Meier
compound filter and context paths are supported now
> UrlRenderer.renderRelativeUrl misbehavior if the filterPath is composed.
> ------------------------------------------------------------------------
>
> Key: WICKET-4891
> URL: https://issues.apache.org/jira/browse/WICKET-4891
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 6.3.0
> Reporter: Jordi Deu-Pons
> Assignee: Sven Meier
> Priority: Minor
> Fix For: 6.4.0
>
> Attachments: WICKET-4891.patch, WICKET-4891.tar.gz
>
>
> Using an application with a composed filterPath like:
> <filter-mapping>
> <filter-name>wicket.jsessionid</filter-name>
> <url-pattern>/demo/test/*</url-pattern>
> </filter-mapping>
> Wicket fails to properly render a bookmarkable link.
> I've debuged my app and the problem is here:
> UrlRenderer.removeCommonPrefixes()
> Line 309:
> String filterPath = request.getFilterPath();
> if (filterPath != null && segments.isEmpty() == false)
> {
> if (filterPath.equals(UrlUtils.normalizePath(segments.get(0))))
> {
> LOG.debug("Removing the filter path '{}' from '{}'", filterPath, segments);
> segments.remove(0);
> }
> }
> This code assumes that the filter path is a single segment path, not a composed path.
> I've only reached this bug browsing my website with the cookies disable. This is why it's not critical.
--
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