Uploaded image for project: 'James Server'
  1. James Server
  2. JAMES-1643

Unable to process message with attachment Content-Disposition issue (creation-date)

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.3.2
    • Fix Version/s: 2.3.2.1
    • Component/s: James Core
    • Labels:
    • 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
    • Flags:
      Patch, Important

      Description

      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: <D935E9EA754F314EA74BD4090CBF1F1D@fpg.local>
      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
      ----------------------------------------------------------------------------

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              suvegas Suvega Srinivasan
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 168h
                168h
                Remaining:
                Remaining Estimate - 168h
                168h
                Logged:
                Time Spent - Not Specified
                Not Specified