[ 
https://issues.apache.org/jira/browse/SLING-13424?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Joerg Hoh resolved SLING-13424.
-------------------------------
    Fix Version/s: API 3.0.4
       Resolution: Fixed

> 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
>            Priority: Major
>             Fix For: API 3.0.4
>
>
> {{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)

Reply via email to