You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2015/03/14 18:23:38 UTC

[jira] [Updated] (CAMEL-8437) Simple bean call doesn't like parenthesis in parameter values

     [ https://issues.apache.org/jira/browse/CAMEL-8437?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen updated CAMEL-8437:
-------------------------------
    Fix Version/s: 2.16.0
                   2.15.1

> Simple bean call doesn't like parenthesis in parameter values
> -------------------------------------------------------------
>
>                 Key: CAMEL-8437
>                 URL: https://issues.apache.org/jira/browse/CAMEL-8437
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.13.0
>            Reporter: Antoine DESSAIGNE
>            Assignee: Claus Ibsen
>             Fix For: 2.15.1, 2.16.0
>
>
> The simple language fails calling methods with parameters that contains {{")"}}.
> First use case, direct use:
> {code:xml}
> <route>
>     <from uri="timer:foo?repeatCount=1"/>
>     <setBody>
>         <groovy>[")", 42]</groovy>
>     </setBody>
>     <setHeader headerName="test">
>         <simple>${body.contains(")")}</simple>
>     </setHeader>
>     <log message="Body: ${body}, contains: ${header.test}"/>
> </route>
> {code}
> It throws an error.
> Second use case, with a usage of a parameter:
> {code:xml}
> <route>
>     <from uri="timer:foo?repeatCount=1"/>
>     <setBody>
>         <groovy>[")", 42]</groovy>
>     </setBody>
>     <setProperty propertyName="query">
>         <constant>)</constant>
>     </setProperty>
>     <setHeader headerName="test">
>         <simple>${body.contains(${property.query})}</simple>
>     </setHeader>
>     <log message="Body: ${body}, contains: ${header.test}"/>
> </route>
> {code}
> It doesn't throw any exception but doesn't work.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)