Uploaded image for project: 'Jira Cloud'
  1. Jira Cloud
  2. JRACLOUD-74271

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Fix
    • Low
    • Issue - View
    • None

    Description

      Issue Summary

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

       

      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

      • Even though the link is broken the file is successfully attached.

      Workaround

      Workaround 1

      Use the New issue view

       

      Workaround 2
      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]

      Attachments

        1. Screenshot 2019-08-12 at 7.04.07 PM.png
          29 kB
          Victor Romero
        2. Screenshot 2019-08-12 at 7.04.20 PM.png
          27 kB
          Victor Romero
        3. Screenshot 2019-08-12 at 7.05.16 PM.png
          29 kB
          Victor Romero

        Issue Links

          Activity

            People

              Unassigned Unassigned
              vromero Victor Romero
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: