camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] [Assigned] (CAMEL-8437) Simple bean call doesn't like parenthesis in parameter values
Date Sat, 14 Mar 2015 17:23:38 GMT

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

Claus Ibsen reassigned CAMEL-8437:
----------------------------------

    Assignee: Claus Ibsen

> 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)

Mime
View raw message