Uploaded image for project: 'Jira Service Management Cloud'
  1. Jira Service Management Cloud
  2. JSDCLOUD-12935

Failed to process attachment when containing special characters in the filename

XMLWordPrintable

      Issue Summary

      Email attachments containing special characters in the filename failed to upload on the ticket with the error: "Failed to add the following attachment to this issue because the file name is invalid." when sending email to the JSM mail handler.

      If the same filename is used with the global mail handler, the attachment upload works fine as the global mail handler replaces invalid characters with "_" (underscore).


      Whereas, if we create a ticket with the same filename via email using the JSM mail handler, it uploads the attachment file on the ticket successfully.

      Steps to Reproduce

      1. Create an issue in JSM
      2. Comment on a ticket via email with an attachment containing a special character like {' ', '/', '\"', ':', '?', '', '<', '|', '>'} by sending email to the JSM mail handler within the project. For eg. The filename is: "sys_attachment.do?sys_id=65ae4ef9976fa5101a7ab7afe153afad.JPG".

      Expected Results

      The attachment should be processed and attached to the ticket instead of an error similar to the behaviour documented here for the global mail handler.

      Actual Results

      The attachment failed to upload on the ticket with an error: "Failed to add the following attachment to this issue because the file name is invalid."

      Workaround

      Remove the invalid characters {' ', '/', '\"', ':', '?', '', '<', '|', '>'} from the filename before uploading it.

              12c225d77f3f Deep Kothari
              19b241b646f3 Neha Mahajan
              Votes:
              3 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: