Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C857C108AB for ; Sat, 13 Jul 2013 03:02:20 +0000 (UTC) Received: (qmail 54007 invoked by uid 500); 13 Jul 2013 03:02:20 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 53656 invoked by uid 500); 13 Jul 2013 03:02:15 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 53642 invoked by uid 99); 13 Jul 2013 03:02:13 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 13 Jul 2013 03:02:13 +0000 X-ASF-Spam-Status: No, hits=0.6 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of willem.jiang@gmail.com designates 209.85.220.43 as permitted sender) Received: from [209.85.220.43] (HELO mail-pa0-f43.google.com) (209.85.220.43) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 13 Jul 2013 03:02:08 +0000 Received: by mail-pa0-f43.google.com with SMTP id hz11so9487198pad.30 for ; Fri, 12 Jul 2013 20:01:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:message-id:in-reply-to:references:subject:x-mailer :mime-version:content-type:content-transfer-encoding :content-disposition; bh=1FvnLifKoSiS4JUcQhpvnYxWD3llFwLFb/T98N4AZ0M=; b=hYOFld6yedhoQCT/MHQcANYfMpsliqcdBVPqe2gmTyexk7MIKOaa+LH86vPzM72eUc 9dDpO592xUOC1bD8YF1wo7/0LnJnVEYC0fFYAqCokYCqpo48AraRb0U5KslaUjnv73Vt 9MG73NO92cvGQNRUE5RuwDVhcKB14w1QnTYFYmo1yPD9j04kIzg85LaTnG/bSIWdWvVf zsPbthfeDtI0I9YMBDUb23p3izIQlUil2k5KMJP2MRoLpv1vRM+8RYmCGv1OLVPbd5ep A4R7SaEANrbbJz63yuZ8KUICtOOlMDnAveW7fOV6pa38SEseRy2T9ORXnOueqbqP6kHc vT3g== X-Received: by 10.68.221.138 with SMTP id qe10mr44469831pbc.103.1373684506609; Fri, 12 Jul 2013 20:01:46 -0700 (PDT) Received: from [192.168.1.135] ([111.193.234.3]) by mx.google.com with ESMTPSA id vo8sm10227297pbc.5.2013.07.12.20.01.44 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 12 Jul 2013 20:01:45 -0700 (PDT) Date: Sat, 13 Jul 2013 11:01:42 +0800 From: Willem jiang To: users@camel.apache.org Message-ID: <35B14211E7CE4B83A50F60A68B832098@gmail.com> In-Reply-To: <1373650042058-5735576.post@n5.nabble.com> References: <1373650042058-5735576.post@n5.nabble.com> Subject: Re: Bean Method Invocation regression in 2.11 X-Mailer: sparrow 1.6.4 (build 1176) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Virus-Checked: Checked by ClamAV on apache.org Hi, Thanks for reporting this. I just filled a JIRA=5B1=5D for it. =5B1=5Dhttps://issues.apache.org/jira/browse/CAMEL-6544 =20 -- =20 Willem Jiang Red Hat, Inc. =46useSource is now part of Red Hat Web: http://www.fusesource.com =7C http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) = (English) http://jnn.iteye.com (http://jnn.javaeye.com/) (Chinese) Twitter: willemjiang =20 Weibo: =E5=A7=9C=E5=AE=81willem On Saturday, July 13, 2013 at 1:27 AM, Ashwin Pejavar wrote: > I'm testing my upgrade to 2.11 and noticed a bug in how beanMethod > invocations are parsed. =20 > =20 > I'm using Spring to define my routes. > =20 > The following invocation expression: exec(*, '', 'arg3') gets parsed as= > arg1: * > arg2: =22=22 > arg3: =22,arg3=22 (notice the comma). > =20 > I tracked down the bug to the class org.apache.camel.util.StringQuoteHe= lper. > The code-block > =7D else if (ch =3D=3D separator) =7B > // add as answer if we are not in a quote > if (=21singleQuoted && =21doubleQuoted && sb.length() > 0) =7B > String text =3D sb.toString(); > if (trim) =7B > text =3D text.trim(); > =7D > answer.add(text); > sb.setLength(0); > continue; > =7D > =7D > =20 > Should instead be > =7D else if (ch =3D=3D separator) =7B > // add as answer if we are not in a quote > if (=21singleQuoted && =21doubleQuoted) =7B > if (sb.length() > 0) =7B > String text =3D sb.toString(); > if (trim) =7B > text =3D text.trim(); > =7D > answer.add(text); > sb.setLength(0); > =7D > continue; //always skip separator if not in quotes > =7D > =7D > =20 > =20 > =20 > -- > View this message in context: http://camel.465427.n5.nabble.com/Bean-Me= thod-Invocation-regression-in-2-11-tp5735576.html > Sent from the Camel - Users mailing list archive at Nabble.com (http://= Nabble.com).