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

AttachmentDeserializer cannot handle attachments with Quoted Printable content transfer encoding

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1
    • 2.0.10, 2.1.4
    • Core
    • None

    Description

      I am writing a Web Service using CXF. The problem occurs when CXF receives quoted printable attachments, like this one:

      ------=_Part_6_1979395.1210796510882
      Content-Type: text/xml; charset=Cp1252
      Content-Transfer-Encoding: quoted-printable
      Content-ID: 606517570647
      <?xml version=3D"1.0" encoding=3D"UTF-8"?>
      <MyXml attribute=3D"value">
      </MyXml>

      The AttachmentDeserializer does not decode the "=3D" portions of the attachment. As a result, any downstream interceptors which are expecting XML content complain, because the =3D parts of the attachment make it non-XML compliant.

      This issue was originally reported to the mailing list here:

      http://www.nabble.com/AttachmentDeserializer---handling-attachments-with-quoted-printable-content-transfer-encoding--tt17259696.html#a17259696

      Attachments

        1. AttachmentDeserializer.java
          11 kB
          aaron pieper
        2. QuotedPrintableDecoderStream.java
          3 kB
          aaron pieper

        Issue Links

          Activity

            People

              dkulp Daniel Kulp
              piepera aaron pieper
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: