Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-5383

Trailing semi-colon in Content-Type line of header for MTOM attachments.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.7.7
    • Fix Version/s: 2.7.8, 2.6.11
    • Component/s: None
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      In some situations when building the XML for MTOM attachments there will be a trailing semi-colon at the end of the Content-Type line in the header. This is causing some other software suites issues when trying to parse the data.

      For instance:
      Content-Type: application/xop+xml; charset=UTF-8; type="text/xml";

      There shouldn't be a semi-colon after the "type" value as it's the last of the Content-Type key/value pairs.

      On line 129 of AttachmentSerializer you can see how the header gets built up and always adds a semi-colon.

        Attachments

          Activity

            People

            • Assignee:
              dkulp Daniel Kulp
              Reporter:
              mrobertsnaic Matt Roberts
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: