[
https://issues.apache.org/jira/browse/WICKET-6170?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Martin Grigorov resolved WICKET-6170.
-------------------------------------
Resolution: Fixed
Fix Version/s: 7.4.0
8.0.0-M1
Thanks!
> Wrong requestmapper used for cache decorated resources
> ------------------------------------------------------
>
> Key: WICKET-6170
> URL: https://issues.apache.org/jira/browse/WICKET-6170
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 7.3.0
> Reporter: Sverre Boschman
> Assignee: Martin Grigorov
> Fix For: 8.0.0-M1, 7.4.0
>
> Attachments: wicket-resourcemapper.zip
>
>
> Introduced with the fix for WICKET-6094.
> ResourceMapper.getCompatibilityScore now returns the score of
> AbstractBookmarkableMapper.getCompatibilityScore minus 1. Unfortunately
> AbstractBookmarkableMapper.getCompatibilityScore does not remove any caching
> decoration from the request url and will always return 0. So the score for
> the ResourceMapper that should handle the request is -1, and e.g. the
> HomePageMapper with a score of 0 will handle the request.
> Example:
> GET http://localhost/stylesheet.css -> stylesheet
> GET http://localhost/stylesheet-ver-xxxx.css -> homepage
> Somehow ResourceMapper.removeCachingDecoration should be used during
> getCompatibilityScore.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)