james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Suvega Srinivasan (JIRA)" <server-...@james.apache.org>
Subject [jira] [Created] (JAMES-1643) Unable to process message with attachment Content-Disposition issue (creation-date)
Date Mon, 23 Nov 2015 04:42:10 GMT
Suvega Srinivasan created JAMES-1643:

             Summary: Unable to process message with attachment Content-Disposition issue
                 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:

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";
                creation-date=Mon, 02 Nov 2015 02:29:07 GMT;
                modification-date=Mon, 02 Nov 2015 02:29:07 GMT
Content-ID: <D935E9EA754F314EA74BD4090CBF1F1D@fpg.local>
Content-Transfer-Encoding: base64

For your understanding of my issue, the correct format of attachment content-disposition:
Content-Disposition: attachment; filename=&quot;repDwnload.txt&quot;; size=794;
                creation-date=&quot;Wed, 28 Oct 2015 05:27:20 GMT&quot;;
                modification-date=&quot;Wed, 28 Oct 2015 05:27:20 GMT&quot;
Content-Transfer-Encoding: base64

This message was sent by Atlassian JIRA

To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org

View raw message