[
https://issues.apache.org/jira/browse/CAMEL-24580?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18110392#comment-18110392
]
Ivan Ravin commented on CAMEL-24580:
------------------------------------
So, simple predicate is no longer safe for string comparison
> simple predicate always casts digital strings as numbers
> --------------------------------------------------------
>
> Key: CAMEL-24580
> URL: https://issues.apache.org/jira/browse/CAMEL-24580
> Project: Camel
> Issue Type: Bug
> Components: came-core
> Reporter: Ivan Ravin
> Assignee: Karol Krawczyk
> Priority: Major
>
> Due to this error, strings with leading zeros are compared incorrectly
> {code:java}
> from("timer:test?repeatCount=1&delay=1000")
> .setHeader("Account1").constant("0001")
> .setHeader("Account2").constant("001")
> .filter().simple("${header.Account1} == ${header.Account2}")
> .log(LoggingLevel.ERROR, "Accounts not equals")
> .end(); {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)