Details
-
Suggestion
-
Resolution: Unresolved
-
0
-
10
-
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
- is related to
-
JRACLOUD-42228 Blank Comment should not be added when attachments are created through email with no email body
- Closed
-
JRASERVER-45704 Add attachments to issues from emails without body
- Gathering Interest