Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-14603

Missing multipart boundary in the content type header

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.9.4
    • Fix Version/s: 5.8.0-HF16, 5.9.5
    • Component/s: Automation

      Description

      BlobsWriter does not write the multipart boundary in the content type header.

      It should produce something like:
      Content-Type: multipart/mixed; boundary="gc0p4Jq0M:2Yt08jU534c0p"

      But it only returns:
      Content-Type: multipart/mixed;

      To reproduce call an operation that returns a multipart response (like Blob.toPDF) and check the response header 'Content-Type':

      curl -v -X POST 'http://demo.nuxeo.com//nuxeo/site/automation/Blob.ToPDF' -u Administrator:Administrator  -F'request={}' -F'test.odt=@test.odt;type=application/vnd.oasis.opendocument.text' -F'test2.odt=@test.odt;type=application/vnd.oasis.opendocument.text'
      

        Attachments

          Activity

            People

            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

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