Templates throw error when variables contain certain strings

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Medium
    • 2.2.1
    • Affects Version/s: 2.1.5, 2.2
    • Component/s: None

      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

              Assignee:
              Unassigned
              Reporter:
              Christopher Owen [Atlassian]
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: