Issue Details (XML | Word | Printable)

Key: JRA-12901
Type: Improvement Improvement
Status: Open Open
Priority: Major Major
Assignee: Unassigned
Reporter: Ian Daniel [Atlassian]
Votes: 1
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
JIRA

Email of MIME type text/xml sent to JIRA results in empty issue

Created: 13/Jun/07 12:38 AM   Updated: 06/Dec/07 08:00 PM
Component/s: Email integration
Affects Version/s: None
Fix Version/s: 3.13.x

Time Tracking:
Not Specified

File Attachments: 1. Text File xml-email.txt (1 kB)

Environment:
Customer: JIRA 3.9.0 WAR/EAR on Tomcat 5.5.20 on Windows
Me: JIRA 3.9.0 Standalone on Ubuntu Linux

Participants: Anton Mazkovoi [Atlassian], Ian Daniel [Atlassian] and Jed Wesley-Smith [Atlassian]
Since last comment: 44 weeks, 3 days ago
Labels:


 Description  « Hide
A support customer is bringing emails into JIRA using the POP service. An email that contains "inline" XML (i.e. XML as the body of the message, not as an attachment) and with MIME type text/xml, results in an empty JIRA issue being created. That is, the XML is not in the issue, neither as the description nor as an attachment. The XML data is lost.

Furthermore, there is information produced in the log.

The support case is JSP-12868.

The customer's email is sent by Microsoft Biztalk. I managed to reproduce the problem, sending the email using Mutt (and super-Jeff). I have attached the mail Jeff and I used to reproduce the problem.

If the email instead has the XML as an attachment (not inline), and the attachment is of type text/xml, then the XML is included in the created issue (as an attachment).

If the XML is in the body of the message, but the message type is text/plain, the XML is included in the created issue (in the description).

That is, the problem only exists for inline XML with mail type text/xml.

Kind regards,
Ian



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Anton Mazkovoi [Atlassian] added a comment - 14/Jun/07 02:47 AM
We need to look into this and determine the cause of the problem.

I am concerned with loosing information from e-mail. We should either properly process the e-mail or not process it and not delete it.


Anton Mazkovoi [Atlassian] added a comment - 15/Jun/07 12:08 AM
We did some research on this and had a long discussion. At the moment the system is bahaving as originally intended. That is, JIRA processes the body of the e-mail if it is text/plain or text/html. Otherwise, and issue is created with the summary set to the subject of the e-mail and the body is discarded.

Due to this, I am changing this issue to be an improvement.

At the moment, one can achieve a different bahaviour by modifying the com.atlassian.jira.service.util.handler.CreateIssueHadler class.


Jed Wesley-Smith [Atlassian] added a comment - 06/Dec/07 08:00 PM
The fix for this issue has not been able to make it into JIRA v3.12. We are hoping to incorporate it into v3.12.1. As of writing however, there are 163 items scheduled as Fix For v3.12.1. We will not be able to include all of them.