[
https://issues.apache.org/jira/browse/CAMEL-22204?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Benjamin Graf updated CAMEL-22204:
----------------------------------
Description:
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]
was:
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')}}}
> 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.10.5, 4.12.0
> Reporter: Benjamin Graf
> Assignee: Benjamin Graf
> Priority: Minor
>
> 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)