Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-6087

Templates throw error when variables contain certain strings

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Medium
    • 2.2.1
    • 2.1.5, 2.2
    • None

    Description

      Templates throw an error when values are substitued which contain invalid regular expression sequences.

      This is because the replacement string passed to String.replaceAll is parsed for certain significant strings such as regular expression group references ($n) and escaped literals (\x) and we do not escape these sequences.

      Symptoms:

      StringIndexOutOfBoundsException - when replacement text ends in a backslash
      IllegalArgumentException: Illegal group reference - when replacement text contains a dollar sign followed by a number

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              christopher.owen@atlassian.com Christopher Owen [Atlassian]
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: