Benjamin Graf created CAMEL-22204:
-------------------------------------
Summary: 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, 4.10.5
Reporter: Benjamin Graf
Assignee: Benjamin Graf
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')}}}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)