You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Jukka Zitting (JIRA)" <ji...@apache.org> on 2009/01/08 14:38:59 UTC

[jira] Resolved: (JCR-1926) Text.unescape("%") throws a StringIndexOutOfBoundsException

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

Jukka Zitting resolved JCR-1926.
--------------------------------

       Resolution: Fixed
    Fix Version/s: 1.5.1
         Assignee: Jukka Zitting

Fixed in revision 732703. Scheduling for 1.5.1.

> 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
>            Assignee: Jukka Zitting
>            Priority: Minor
>             Fix For: 1.5.1
>
>
> 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.