Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-12530

Renamed email attachments lose extension

    XMLWordPrintable

Details

    Description

      In 3.7.x, if an email is processed which has an attachment, and the attachment's filename contains invalid characters that can't be represented on the JIRA filesystem, then JIRA will renames the file:

      The problem here is that neither JIRA nor the user can now infer the type of the file. It could be a PDF, an image.. anything.

      Rather than rename the whole file, JIRA should break filenames into name + extension, and sanitize each individually. Typically this will result in the extension being unharmed, yielding filenames like renamedFile~1.pdf.

      Attachments

        Issue Links

          Activity

            People

              sam@atlassian.com Sam Chang [Atlassian]
              7ee5c68a815f Jeff Turner
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: