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

S3 PUT fails for SMTP mail without body

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.6.0
    • 3.7.0, 3.6.1
    • Blob
    • None
    • James: built from james-project-3.6.0 tag
      Blobstore: MinIO latest
      OS: Linux

    Description

      When I send a mail via SMTP and provide only headers (no separator nor body, i.e. ending DATA with a . immediately after the headers), then the S3 PUT operation for the body fails with "400 Bad Request: null". Debug output shows that James provides a "Content-Length: -2", likely the cause of this error.

      This only happens since I upgraded to James built from the james-project-3.6.0 tag. A version built from master a month before accepted the mail and stored an empty blob (size 0) in S3.

      Admittedly this is an edge case, but easily happens on copy+paste to an open SMTP connection.

      Attachments

        Activity

          People

            Unassigned Unassigned
            kotto Karsten Otto
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 50m
                50m