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

Jira should better handle email attachment errors

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • None
    • Mail Server
    • None
    • We collect Jira feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

    Description

      When an attachment sent by mail fails to be added to an issue, Jira should either:

      • Replace the invalid characters
      • Add a comment to the issue letting the user know that the file attachment failed

      Currently, the only indication is a "Got exception while saving attachment in attachment store" error in the logs.
      For example:

      2024-03-21 20:11:45,616-0400 Caesium-1-2 WARN myuser     [c.a.j.issue.managers.DefaultAttachmentManager] Got exception while saving attachment in attachment store. Exception: Illegal char <
          > at index 13: filename_with
          line_break.txt
      2024-03-21 20:11:45,618-0400 Caesium-1-2 WARN myuser     [c.a.s.i.feature.emailchannel.IncomingEmailManagerImpl] An unexpected error occurred while attaching file 'filename_with
          line_break.txt' due to: Got error while saving attachment filename_with
          line_break.txt: Got exception while saving attachment in attachment store. Exception: Illegal char <
          > at index 13: filename_with
          line_break.txt 
      

      We have observed that in some cases setting the encoding as described in Platform encoding or JNU encoding in Jira is set to ANSI_X3.4-1968 even though the server is set to UTF-8 helps preventing the issue.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              5fb7769fcbc7 Allan Gandelman
              Votes:
              6 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated: