[ https://issues.apache.org/jira/browse/CXF-4482?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13500899#comment-13500899 ]
Kirill Kadyrko commented on CXF-4482: ------------------------------------- Hi, I think we should definitely use CRLFCRLF to separate HTTP headers and a body. What took place before the fix, was actually THREE line breaks after HTTP headers (CRLFCRLFCRLF). Maybe the most reasonable fix is to just remove the last CRLF? I've attached a screenshot. > AttachmentSerializer puts an extra new line > ------------------------------------------- > > Key: CXF-4482 > URL: https://issues.apache.org/jira/browse/CXF-4482 > Project: CXF > Issue Type: Bug > Affects Versions: 2.6.1 > Reporter: Kirill Kadyrko > Assignee: Freeman Fang > Fix For: 2.4.11, 2.5.7, 2.6.4, 2.7.1 > > Attachments: crlf.jpg > > > _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: > {code} > ... > Pragma: no-cache > Connection: keep-alive > Content-Length: 92010 > <new line> > <another new line> > --uuid:467a6f94-55c4-43fe-9e4a-09d63b0bc589 > Content-Type: application/xml > ... > {code} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira