You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Antoine DESSAIGNE (JIRA)" <ji...@apache.org> on 2015/03/04 16:53:06 UTC

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

Antoine DESSAIGNE created CAMEL-8437:
----------------------------------------

             Summary: 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


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)