Text.unescape("%") throws a StringIndexOutOfBoundsException
-----------------------------------------------------------

                 Key: JCR-1926
                 URL: https://issues.apache.org/jira/browse/JCR-1926
             Project: Jackrabbit
          Issue Type: Bug
          Components: jackrabbit-jcr-commons
    Affects Versions: 1.5.0
            Reporter: Jukka Zitting
            Priority: Minor


You get the following exception:

java.lang.StringIndexOutOfBoundsException: String index out of range: 3
        at java.lang.String.substring(String.java:1935)
        at org.apache.jackrabbit.util.Text.unescape(Text.java:407)
        at org.apache.jackrabbit.util.Text.unescape(Text.java:438)

It would be better if it failed with IllegalArgumentException.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to