Suvega Srinivasan created JAMES-1643:
----------------------------------------
Summary: Unable to process message with attachment
Content-Disposition issue (creation-date)
Key: JAMES-1643
URL: https://issues.apache.org/jira/browse/JAMES-1643
Project: James Server
Issue Type: Bug
Components: James Core
Affects Versions: 2.3.2
Environment: OS Name: Microsoft Windows Server 2012 R2 Standard
System Type: x64-based PC
JRE: 1.7.0_75
James Version: james-2.3.2
Reporter: Suvega Srinivasan
Fix For: 2.3.2.1
Issue Description:
Our James mail server (2.3.2) was unable to process a mime message that had
attachment with Content-Disposition issue, the creation-date of mime message
from external mail server doesn’t have the quoted string and was not adhering
to RFC 2183. The message/attachment header dates are not encapsulated in
quotes. Is there a fix for James to resolve the issue at James Server side to
process or add the quoted string to Content-Disposition parameter values.
Other Findings:
This message sent from an external email server was well received and processed
by other email servers including MS Outlook exchange server. Since email is
failing in James alone, we wanted to know if there is a workaround/fix
available for James mail server to overcome this issue and process the message.
Mail Server Information:
OS Name: Microsoft Windows Server 2012 R2 Standard
System Type: x64-based PC
JRE: 1.7.0_75
James Version: james-2.3.2
Error message in James Mailet log:
04/11/15 15:34:32 INFO James.Mailet: recepientFlag are: false
04/11/15 15:34:32 INFO James.Mailet: AttachmentFileNameIs: Malformed message
javax.mail.internet.ParseException: Expected ';', got ","
at
javax.mail.internet.ParameterList.<init>(ParameterList.java:281)
at
javax.mail.internet.ContentDisposition.<init>(ContentDisposition.java:100)
at
javax.mail.internet.MimeBodyPart.getFileName(MimeBodyPart.java:1145)
at
javax.mail.internet.MimeBodyPart.getFileName(MimeBodyPart.java:528)
at
org.apache.james.transport.matchers.AttachmentFileNameIs.matchFound(AttachmentFileNameIs.java:183)
Mime Message with issue, attachment content disposition:
----------------------------------------------------------------------------
Content-Disposition: attachment;
filename="8_pdfsam_2015.10.27 NCSU Blue Certificates 1-41.pdf";
size=1195923;
creation-date=Mon, 02 Nov 2015 02:29:07 GMT;
modification-date=Mon, 02 Nov 2015 02:29:07 GMT
Content-ID: <[email protected]>
Content-Transfer-Encoding: base64
----------------------------------------------------------------------------
For your understanding of my issue, the correct format of attachment
content-disposition:
----------------------------------------------------------------------------
Content-Disposition: attachment; filename="repDwnload.txt"; size=794;
creation-date="Wed, 28 Oct 2015 05:27:20 GMT";
modification-date="Wed, 28 Oct 2015 05:27:20 GMT"
Content-Transfer-Encoding: base64
----------------------------------------------------------------------------
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]