Return-Path: X-Original-To: apmail-cxf-issues-archive@www.apache.org Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6E787DD22 for ; Mon, 19 Nov 2012 19:21:58 +0000 (UTC) Received: (qmail 64615 invoked by uid 500); 19 Nov 2012 19:21:58 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 64570 invoked by uid 500); 19 Nov 2012 19:21:58 -0000 Mailing-List: contact issues-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list issues@cxf.apache.org Received: (qmail 64561 invoked by uid 99); 19 Nov 2012 19:21:58 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Nov 2012 19:21:58 +0000 Date: Mon, 19 Nov 2012 19:21:58 +0000 (UTC) From: "Hagen Raab (JIRA)" To: issues@cxf.apache.org Message-ID: <1443300663.4382.1353352918153.JavaMail.jiratomcat@arcas> In-Reply-To: <991625518.38603.1345616678212.JavaMail.jiratomcat@arcas> Subject: [jira] [Commented] (CXF-4482) AttachmentSerializer puts an extra new line MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CXF-4482?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13500523#comment-13500523 ] Hagen Raab commented on CXF-4482: --------------------------------- This fix introduces a new problem. The LF (w/o CR) leads to problems with .NET SOAP clients (talking to CXF servers with with fix). .NET refuses the SOAP message. I think it's because the lonely LF. (tested with MTOM, SOAP12 binding) I also think that replacing a CRLF by LF in the header is not valid HTTP. > 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.10, 2.5.6, 2.6.3, 2.7.0 > > > _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 > > > --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