Uploaded image for project: 'Jira Cloud'
  1. Jira Cloud
  2. JRACLOUD-45704

Add attachments to issues from emails without body

    XMLWordPrintable

    Details

    • Feedback Policy:

      Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

      Description

      NOTE: This suggestion is for JIRA Cloud. Using JIRA Server? See the corresponding suggestion.

      Problem Definition

      When a mail is sent to JIRA, if the mail lacks a body and only contains the attachment, JIRA create the issue but does not add the attachment.

      In the logs, JIRA will dump the following exception:

      2015-10-08 15:59:51,161 QuartzScheduler_Worker-1 INFO ServiceRunner    Incoming Test [com.atlassian.mail.MailUtils] Could not find any body to extract from the message
      

      The mail that generated this exception is:

      Date: Mon, 01 Oct 2015 12:01:01 -0400
      From: Some User <some_user@domain.com>
      Subject: Test Email
      To: <jira@mycompany.com>
      Message-ID: <userbla@message-id>
      Content-Type: application/pdf; name="myfile.pdf"
      Content-Transfer-Encoding: base64
      Content-Description: myfile
      Return-Path: some_user@domain.com
      MIME-Version: 1.0
      
      [base-64-representing-myfile.pdf-here]
      

      However, if you receive the message below:

      Date: Mon, 01 Oct 2015 12:01:01 -0400
      From: Some User <some_user@domain.com>
      Subject: Test Email
      To: <jira@mycompany.com>
      Message-ID: <userbla@message-id>
      Return-Path: some_user@domain.com
      MIME-Version: 1.0
      Content-Type: multipart/alternative; boundary=atlassian-test
      
      --atlassian-test
      Content-Type: application/pdf; name="myfile.pdf"
      Content-Transfer-Encoding: base64
      Content-Description: myfile
      
      [base-64-representing-myfile.pdf-here]
      
      --atlassian-test
      Content-Type: text/plain; charset=us-ascii 
      

      Then JIRA will create the mail successfully.

      Suggested Solution

      Improve the mail handling in JIRA to accept the first type of message as some systems send mails like that. (I.E: SAP NetWeaver, SQL Server Reports)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              pcora Pedro Cora (Inactive)
              Votes:
              9 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated: