Mail handler intermittently fails to upload attachment from email and adds comment as anonymous

XMLWordPrintable

    • 2
    • Severity 1 - Critical

      Summary

      Processing an email (with attachment), mail handler creates the issue, and fails to upload the attachment as it receives exception from Media API.
      Following error appears in logs:

      Got error while saving attachment <attachment>: Got exception while saving attachment in attachment store. Exception: com.atlassian.jira.issue.attachment.store.media.MediaApiStreamAttachmentStore$FailureMediaApiResponseException: [AttachmentUploadFailure] Could not upload attachment
          	 stack:	 java.io.IOException: Got error while saving attachment <attachment>: Got exception while saving attachment in attachment store. Exception: com.atlassian.jira.issue.attachment.store.media.MediaApiStreamAttachmentStore$FailureMediaApiResponseException: [AttachmentUploadFailure] Could not upload attachment
      Caused by: com.atlassian.jira.web.util.AttachmentException: Got error while saving attachment <attachment>: Got exception while saving attachment in attachment store. Exception: com.atlassian.jira.issue.attachment.store.media.MediaApiStreamAttachmentStore$FailureMediaApiResponseException: [AttachmentUploadFailure] Could not upload attachment
      Caused by: java.lang.RuntimeException: com.atlassian.jira.issue.attachment.store.media.MediaApiStreamAttachmentStore$FailureMediaApiResponseException: [AttachmentUploadFailure] Could not upload attachment
      Caused by: com.atlassian.jira.issue.attachment.store.media.MediaApiStreamAttachmentStore$FailureMediaApiResponseException: [AttachmentUploadFailure] Could not upload attachment
      Caused by: org.apache.http.NoHttpResponseException: api-internal.media.atlassian.com:443 failed to respond
      

      Note

      This issue occurs intermittently.

      Steps to Reproduce

      1. Add a mail server.
      2. Add a mail handler and associate it to the mail server in step 1.
      3. Send an email with attachment to the email address defined in mail server (step 1).

      Expected Results

      Mail handler creates issue from email and attaches the email's attachments to the issue.

      Actual Results

      Mail handler creates issue from email, and fails to upload the attachment. Following comment is added to the issue as anonymous:

      An error occurred while adding attachments to this issue from the source email. Please check the attachments and re-send the email.
      

            Assignee:
            Thuan Nguyen
            Reporter:
            Yahya (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: