Felix Meschberger created SLING-2475:
----------------------------------------
Summary: Don't create reverse mappings for regular expression
matches
Key: SLING-2475
URL: https://issues.apache.org/jira/browse/SLING-2475
Project: Sling
Issue Type: Improvement
Components: JCR
Affects Versions: JCR Resource 2.0.10
Reporter: Felix Meschberger
Assignee: Felix Meschberger
Fix For: JCR Resource 2.1.0
Consider the following setup in /etc/map:
any_example_com (sling:Mapping)
.+\.example.com.8080 (sling:match)
/content/example (sling:internalRedirect)
This creates a resolver map entry "^http/(.+)\.example.com.4503 ==>
/content/example" which is correct and a mapping map entry "/content/example
==> http://.+\.example.com:8080" which is not correct.
We should in fact try to find out whether an URL to be resolved to an internal
one is a regular expression and not create a mapping map entry in these cases.
--
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