Return-Path: X-Original-To: apmail-camel-dev-archive@www.apache.org Delivered-To: apmail-camel-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6B5EA19F6B for ; Tue, 26 Apr 2016 17:25:42 +0000 (UTC) Received: (qmail 65523 invoked by uid 500); 26 Apr 2016 17:25:42 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 65475 invoked by uid 500); 26 Apr 2016 17:25:42 -0000 Mailing-List: contact dev-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 dev@camel.apache.org Received: (qmail 65462 invoked by uid 99); 26 Apr 2016 17:25:42 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Apr 2016 17:25:42 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id D647DDFE5F; Tue, 26 Apr 2016 17:25:41 +0000 (UTC) From: urbanenomad To: dev@camel.apache.org Reply-To: dev@camel.apache.org Message-ID: Subject: [GitHub] camel pull request: Fix over writing previous addToResult calls Content-Type: text/plain Date: Tue, 26 Apr 2016 17:25:41 +0000 (UTC) GitHub user urbanenomad opened a pull request: https://github.com/apache/camel/pull/961 Fix over writing previous addToResult calls I noticed that multiple calls to the addToResult method in the org.apache.camel.component.aws.ddb.AbstractDdbCommand within the child class org.apache.camel.component.aws.ddb.ScanCommand caused the next call to over write the previous calls to addToResult in the header results. The end result is only having the last result value returned in the out message which is the SCANNED_COUNT header. The exchange.getOut() already passes back the "In" Message or creates a new Message object if no out message exists does not need to copy over the "In" message into the "Out" message. You can merge this pull request into a Git repository by running: $ git pull https://github.com/urbanenomad/camel master Alternatively you can review and apply these changes as the patch at: https://github.com/apache/camel/pull/961.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #961 ---- commit f9c65d0c621206a316ea81a9b4e3164d009dbe1c Author: Won Date: 2016-04-26T17:09:18Z Fix over writing previous addToResult calls I noticed that multiple calls to the addToResult method in the org.apache.camel.component.aws.ddb.AbstractDdbCommand within the child class org.apache.camel.component.aws.ddb.ScanCommand caused the next call to over write the previous calls to addToResult in the header results. The end result is only having the last result value returned in the out message which is the SCANNED_COUNT header. The exchange.getOut() already passes back the "In" Message or creates a new Message object if no out message exists does not need to copy over the "In" message into the "Out" message. ---- --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastructure@apache.org or file a JIRA ticket with INFRA. ---