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 E2B991005C for ; Thu, 11 Jul 2013 21:03:48 +0000 (UTC) Received: (qmail 99634 invoked by uid 500); 11 Jul 2013 21:03:48 -0000 Delivered-To: apmail-camel-issues-archive@camel.apache.org Received: (qmail 99615 invoked by uid 500); 11 Jul 2013 21:03:48 -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 99607 invoked by uid 99); 11 Jul 2013 21:03:48 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Jul 2013 21:03:48 +0000 Date: Thu, 11 Jul 2013 21:03:48 +0000 (UTC) From: "Claus Ibsen (JIRA)" To: issues@camel.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (CAMEL-6541) DefaultUnitOfWork's headers for the original message are the same object as the in message headers 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-6541?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Claus Ibsen resolved CAMEL-6541. -------------------------------- Resolution: Fixed Assignee: Claus Ibsen > DefaultUnitOfWork's headers for the original message are the same object as the in message headers > -------------------------------------------------------------------------------------------------- > > Key: CAMEL-6541 > URL: https://issues.apache.org/jira/browse/CAMEL-6541 > Project: Camel > Issue Type: Bug > Components: camel-core, camel-jms > Affects Versions: 2.8.6 > Reporter: Joshua Palmer > Assignee: Claus Ibsen > Priority: Minor > Fix For: 2.10.7, 2.11.2, 2.12.0 > > > For jms messages, the useOriginalMessage does not work when headers are changed during the route because the DefaultUnitOfWork's headers are the same object as the in message's headers. > In DefaultUnitOfWork, this.originalInMessage.setHeaders(exchange.getIn().getHeaders()); should be changed to create a copy of the headers instead of directly assigning. > Maybe changed to this.originalInMessage.setHeaders((Map) new CaseInsensitiveMap(exchange.getIn().getHeaders())); -- 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