Uploaded image for project: 'Confluence Cloud'
  1. Confluence Cloud
  2. CONFCLOUD-74200

Remove filename from download attachments url

XMLWordPrintable

    • 20
    • 12
    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

      Issue Summary

      An attachment is unable to be downloaded if it has certain HTML unsafe characters in the filename. Ideally, the filename would not be in the download attachments url so that this would not matter.

      Steps to Reproduce

      1. Create a file with an unsafe character in the name like a semicolon ";" or "\", as for instance "test1;test2.txt"
      2. Attach this attachment to a page.
      3. Go to the attachments by clicking ... > Attachments on the page.
      4. Try to download the attachment by clicking on it.

      Expected Results

      The attachment is downloaded successfully.

      Actual Results

      The attachment download isn't working and fails with a 400 Bad Request error. With other characters, it may fail with a Not Found error.

       

      Workaround

      Rename the attachment name by deleting the unsafe character with the following steps:

      1. Go to the attachments section.
      2. Click properties for the attachment.
      3. Delete character(s) from the next of "File Name" section.

         

              Unassigned Unassigned
              cqian@atlassian.com Clarissa Qian (Inactive)
              Votes:
              7 Vote for this issue
              Watchers:
              12 Start watching this issue

                Created:
                Updated: