Using square bracket in file name will cause the generated link to be broken after upload

XMLWordPrintable

    • 7.05
    • 2
    • Severity 3 - Minor
    • 0

      Issue Summary

      Using square brackets in the file name will cause the generated link to be broken after upload.

      Environment

      -

      Steps to Reproduce

      1. Create an attachment with square bracket (" [ " & " ] ").
      2. While commenting on an issue, upload the attachment.
      3. You will see the link is broken as shown in Actual Results.

      Expected Results

      Actual Results

      Notes

      • The file gets uploaded nonetheless.
      • This is no filename spaces bug regression as an attachment with spaces in their name attached fine:

      Workaround

      Workaround 1
      Use another markup syntax but escaping the square bracket with a backslash symbol:

      [filename to be displayed by escaping the square bracket | link to the file by copy-paste from the attachment section] 
      

      Example:

      [some file with \[square bracket\].msg|http://baseURL/secure/attachment/12345/some%20file%20with%20%5Bsquare%20bracket%5D.msg]
      

      Workaround 2
      Upgrade to JIRA 7.13.4 (tested alright) and above.

              Assignee:
              Unassigned
              Reporter:
              Benz Kek (Inactive)
              Votes:
              6 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated: