Uploaded image for project: 'Jackrabbit Content Repository'
  1. Jackrabbit Content Repository
  2. JCR-1926

Text.unescape("%") throws a StringIndexOutOfBoundsException

    XMLWordPrintableJSON

Details

    Description

      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.

      Attachments

        Activity

          People

            jukkaz Jukka Zitting
            jukkaz Jukka Zitting
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: