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 6F821F2D7 for ; Thu, 21 Mar 2013 13:01:17 +0000 (UTC) Received: (qmail 57752 invoked by uid 500); 21 Mar 2013 13:01:17 -0000 Delivered-To: apmail-camel-issues-archive@camel.apache.org Received: (qmail 57582 invoked by uid 500); 21 Mar 2013 13:01:17 -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 57502 invoked by uid 99); 21 Mar 2013 13:01:16 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Mar 2013 13:01:16 +0000 Date: Thu, 21 Mar 2013 13:01:16 +0000 (UTC) From: "Xavier Fournet (JIRA)" To: issues@camel.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (CAMEL-6191) Simple expression and predicate behaviors are different when accessing to map with a space in the key MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Xavier Fournet created CAMEL-6191: ------------------------------------- Summary: Simple expression and predicate behaviors are different when accessing to map with a space in the key Key: CAMEL-6191 URL: https://issues.apache.org/jira/browse/CAMEL-6191 Project: Camel Issue Type: Bug Components: camel-core Affects Versions: 2.10.4, 2.10.3 Reporter: Xavier Fournet Attachments: CamelTest.java The simple langage permit to access to a map element by specifying the key between [], ie ${body[key]} When the key contains a space the behavior is not the same for a simple expression or a simple predicate: * expression ${body[my key]} will access to the "my key" element -> correct * expression ${body['my key']} will access to the "my key" element -> correct * predicate ${body[my key]} == 'value' will access to the "mykey" element -> incorrect * predicate ${body[my key]} == 'value' will access to the "mykey" element -> correct See attached testcase, the current ouput is {noformat} 618 [main] INFO route1 - VALUE1 624 [main] INFO route1 - VALUE1 629 [main] INFO route1 - VALUE2 633 [main] INFO route1 - VALUE2 641 [main] INFO route1 - test1 is false 648 [main] INFO route1 - test2 is true 652 [main] INFO route1 - test3 is true 657 [main] INFO route1 - test4 is false {noformat} but it should be {noformat} 618 [main] INFO route1 - VALUE1 624 [main] INFO route1 - VALUE1 629 [main] INFO route1 - VALUE2 633 [main] INFO route1 - VALUE2 641 [main] INFO route1 - test1 is true 648 [main] INFO route1 - test2 is true 652 [main] INFO route1 - test3 is false 657 [main] INFO route1 - test4 is false {noformat} -- 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