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

Claus Ibsen resolved CAMEL-22204.
---------------------------------
    Resolution: Fixed

> Simple expression iif does not support Strings in predicate
> -----------------------------------------------------------
>
>                 Key: CAMEL-22204
>                 URL: https://issues.apache.org/jira/browse/CAMEL-22204
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 4.12.0
>            Reporter: Benjamin Graf
>            Assignee: Benjamin Graf
>            Priority: Minor
>             Fix For: 4.13.0
>
>
> The predicate part of simple expression {{iif}} is getting corrupted during 
> parsing according {{String}}. The method 
> {{SimpleFunctionExpression.createSimpleExpressionMisc(String function)}} does 
> call {{StringQuoteHelper.splitSafeQuote(...)}}, which does remove quotes, 
> causing exceptions during predicate evaluation.
> Example:
> {{${iif(${file:name} startsWith 'test', 'foo', 'bar')}}}
> [#18483|https://github.com/apache/camel/pull/18483]



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to