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

Konrad Windszus updated JCR-5152:
---------------------------------
    Component/s: jackrabbit-jcr-commons

> Add method isValidJcrLocalName(String) to o.a.j.util.Text
> ---------------------------------------------------------
>
>                 Key: JCR-5152
>                 URL: https://issues.apache.org/jira/browse/JCR-5152
>             Project: Jackrabbit Content Repository
>          Issue Type: Improvement
>          Components: jackrabbit-jcr-commons
>            Reporter: Konrad Windszus
>            Assignee: Konrad Windszus
>            Priority: Major
>
> Currently there is only 
> https://jackrabbit.apache.org/api/trunk/org/apache/jackrabbit/util/Text.html#escapeIllegalJcrChars(java.lang.String)
>  and 
> https://jackrabbit.apache.org/api/trunk/org/apache/jackrabbit/util/Text.html#unescapeIllegalJcrChars(java.lang.String)
>  but no direct method which allows to check whether a name needs escaping or 
> not.
> Just checking the return value of {{Text.escapeIllegalJcrChars(...)}} is not 
> suitable, as this will even escape the percent character ({{%}}) which is 
> valid in JCR names. Also {{Text.escapeIllegalJcrChars(...)}} does not 
> necessarily return a valid JCR name.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to