[
https://issues.apache.org/jira/browse/CAMEL-24963?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Claus Ibsen resolved CAMEL-24963.
---------------------------------
Resolution: Fixed
Fixed by https://github.com/apache/camel/pull/26806 (merged as cbe03f3fee0d).
_Claude Code on behalf of davsclaus_
> simple - ${properties:key:default} with a default containing an operator word
> is parsed as a predicate
> ------------------------------------------------------------------------------------------------------
>
> Key: CAMEL-24963
> URL: https://issues.apache.org/jira/browse/CAMEL-24963
> Project: Camel
> Issue Type: Sub-task
> Components: camel-core
> Reporter: Claus Ibsen
> Assignee: Claus Ibsen
> Priority: Major
> Fix For: 4.23.0
>
>
> Regression from CAMEL-24921 (edb3a1406c60, predicate inside ${ }).
> SimpleFunctionExpression runs the operatorsOutside check before any function
> factory; it skips a match when parentheses are open or quotes appear before
> the operator word, but not when the word is inside a property default value
> or inside brackets.
> * (verified) {{${properties:msg:value is not set}}} now fails with "Binary
> operator is does not accept not on the right hand side". Before it returned
> the default value "value is not set".
> * likely the same: {{${header[order in progress]}}}
> Fix: skip the predicate-in-braces detection for function text such as
> properties defaults / bracket keys, and add tests.
> _Claude Code on behalf of davsclaus (found by an AI review of the simple
> language source; each item marked (verified) was reproduced on main at
> c3ef718de2e8)_
--
This message was sent by Atlassian Jira
(v8.20.10#820010)