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 861D5CF3B for ; Wed, 17 Jul 2013 14:06:54 +0000 (UTC) Received: (qmail 23978 invoked by uid 500); 17 Jul 2013 14:06:54 -0000 Delivered-To: apmail-camel-issues-archive@camel.apache.org Received: (qmail 23527 invoked by uid 500); 17 Jul 2013 14:06:49 -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 23505 invoked by uid 99); 17 Jul 2013 14:06:48 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Jul 2013 14:06:48 +0000 Date: Wed, 17 Jul 2013 14:06:48 +0000 (UTC) From: "Marc Carter (JIRA)" To: issues@camel.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CAMEL-6558) UnitOfWork.getOriginalInMessage does not restore 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-6558?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Marc Carter updated CAMEL-6558: ------------------------------- Summary: UnitOfWork.getOriginalInMessage does not restore headers (was: UnitOfWork.getOriginalInMessage is does not restore headers) > UnitOfWork.getOriginalInMessage does not restore headers > -------------------------------------------------------- > > Key: CAMEL-6558 > URL: https://issues.apache.org/jira/browse/CAMEL-6558 > Project: Camel > Issue Type: Bug > Components: camel-core > Affects Versions: 2.11.0 > Reporter: Marc Carter > > I noticed the map of headers is not restored to its original state when restoring the original message. I can't imagine this is by design... > Debugging shows the same instance of Map is being used so the "original" message is actually being mutated during the route execution. > {code} > exchange.getIn().getHeaders() == exchange.getUnitOfWork().getOriginalInMessage().getHeaders(); > {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