Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
Consider a node at
/content/_test/jcr:content
With namespace mangling, this node should be accessible with the URL path
/content/_test/_jcr_content
where the "jcr" prefix is converted to the correct namespace prefix "jcr:" but the prefixed underscore "_" of the "_test" node must be left unmodified.
The regular expression to find and replace the namespace prefixes – "/([^_]+)" – is setup to match anything enclosed with "/" and "". Thus the test path would match "/test/" and fail to convert this (of course test/ is not a valid, registered namespace prefix). But subsequently the real prefix – "jcr" – is actually missed.
The regular expression must be modified to not match any slash characters, thus "/([^_/]+)"