-
Bug
-
Resolution: Fixed
-
Low
-
None
-
2
-
Severity 3 - Minor
-
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
- Create an issue in JSM
- 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.
- is duplicated by
-
JSDCLOUD-12934 Improve attachment handling within JSM mail handler when filename contain invalid character
- Closed