camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antoine DESSAIGNE (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CAMEL-8437) Simple bean call doesn't like parenthesis in parameter values
Date Wed, 04 Mar 2015 15:53:06 GMT
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)

Mime
View raw message