Joerg Hoh created SLING-13424:
---------------------------------
Summary: ResourceUtil.unescapeName() throws on backslashes
Key: SLING-13424
URL: https://issues.apache.org/jira/browse/SLING-13424
Project: Sling
Issue Type: Task
Components: API
Affects Versions: API 3.0.2
Reporter: Joerg Hoh
Assignee: Joerg Hoh
{{ResourceUtil.unescapeName()}} passes decoded characters directly to
{{Matcher.appendReplacement()}}, which interprets backslashes and dollar signs
as replacement syntax.
As a result, {{unescapeName(escapeName(name))}} throws
{{IllegalArgumentException}} for names containing backslashes instead of
restoring the original name. Decoding an escaped dollar sign also throws.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)