Some configuration may corrupt resolution and mapping
-----------------------------------------------------
Key: SLING-776
URL: https://issues.apache.org/jira/browse/SLING-776
Project: Sling
Issue Type: Bug
Components: JCR Resource
Affects Versions: JCR Resource 2.0.4
Reporter: Felix Meschberger
Assignee: Felix Meschberger
Fix For: JCR Resource 2.0.4
Consider the mapping http/host => /
Here a request http://host/sample.html is resolved to //sample.html because the
http://host matches http/host. If the match is replaced by the replacement "/",
the path //sample.html results. This is wrong. The fix is to ensure a match for
http/host/ (trailing slash) where the leading slash of the path is also matched
and then replaced by the single slash.
In addition the reverse mapping matches the leading slash and replaces that
with the http://host prefix (see missing trailing slash) resulting in the URL
http://hostsample.html.
The fix is to ensure trailing slashes on non-regular expression matches.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.