Uploaded image for project: 'FUSE Services Framework'
  1. FUSE Services Framework
  2. SF-481

AttachmentSerializer puts an extra new line

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 2.6.0-fuse-00-xx
    • Fix Version/s: 2.6.0-fuse-00-xx
    • Component/s: None
    • Labels:
      None

      Description

      AttachmentSerializer always puts an extra new line before writing the root attachment boundary and headers. Because of that the HTTP request which contains only attachments has two line breaks after request headers. That is not understood by some service providers and they do not process the request.
      For example:

      Content-Type: multipart/related; type="text/xml"; boundary="uuid:a73c4036-6709-4c09-9bed-c87e9673a4c0"; start="<root.message@cxf.apache.org>"; start-info="text/xml"\CR\LF
      \LF
      --uuid:a73c4036-6709-4c09-9bed-c87e9673a4c0\CR\LF
      Content-Type: text/xml; charset=UTF-8; type="text/xml"\CR\LF
      Content-Transfer-Encoding: binary\CR\LF
      Content-ID: <root.message@cxf.apache.org>\CR\LF
      \CR\LF
      <?xml version='1.0' encoding='UTF-8'?><soapenv:Envel
      

      External issue: https://issues.apache.org/jira/browse/CXF-4482

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  ffang Freeman(Yue) Fang
                  Reporter:
                  joe.luo Joe Luo
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: