Return-Path: X-Original-To: apmail-camel-issues-archive@minotaur.apache.org Delivered-To: apmail-camel-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 21BA318AD2 for ; Sun, 3 Jan 2016 10:51:40 +0000 (UTC) Received: (qmail 41027 invoked by uid 500); 3 Jan 2016 10:51:40 -0000 Delivered-To: apmail-camel-issues-archive@camel.apache.org Received: (qmail 40893 invoked by uid 500); 3 Jan 2016 10:51:40 -0000 Mailing-List: contact issues-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list issues@camel.apache.org Received: (qmail 40877 invoked by uid 99); 3 Jan 2016 10:51:39 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 03 Jan 2016 10:51:39 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id CD15D2C1F5A for ; Sun, 3 Jan 2016 10:51:39 +0000 (UTC) Date: Sun, 3 Jan 2016 10:51:39 +0000 (UTC) From: "Pascal Schumacher (JIRA)" To: issues@camel.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CAMEL-8402) CxfPayloadConverter modifies source CxfPayload with Stream 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/CAMEL-8402?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15080393#comment-15080393 ] Pascal Schumacher commented on CAMEL-8402: ------------------------------------------ Any reasons why this patch was not applied yet? > CxfPayloadConverter modifies source CxfPayload with Stream > ---------------------------------------------------------- > > Key: CAMEL-8402 > URL: https://issues.apache.org/jira/browse/CAMEL-8402 > Project: Camel > Issue Type: Bug > Components: camel-cxf > Affects Versions: 2.14.1 > Reporter: Stephan Siano > Attachments: 0001-CAMEL-8401-CXFPayloadConverter-modifies-source-CXFPa.patch > > > The CxfPayloadConverter has a mechanism that replaces the first bodySource of the source CxfMessage with a newly created DOMSource. > This mechanism does not work if the conversion result is a Source itself (e.g. a SAXSource). In this case the bodySource is first replaced by the DOMSource and afterwards replaced again by the conversion result (the SAXSource) If that one is read, the data is gone. > While the first replacement of the source is questionable, the second replacement is plain wrong. > The attached patch will just remove the code that does the second replacement. -- This message was sent by Atlassian JIRA (v6.3.4#6332)