[ 
https://issues.apache.org/jira/browse/CAMEL-24407?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18110065#comment-18110065
 ] 

Claus Ibsen commented on CAMEL-24407:
-------------------------------------

Fixed on main via https://github.com/apache/camel/pull/25945, backported to 
camel-4.22.x via https://github.com/apache/camel/pull/25978 (commit 
65cd5d3f4c4e1a92b7e4c3a2ce0753d47886e100) and to camel-4.18.x via 
https://github.com/apache/camel/pull/25979. All three fixVersions (4.23.0, 
4.22.1, 4.18.5) are now covered.

> simple predicate fails for long digital strings
> -----------------------------------------------
>
>                 Key: CAMEL-24407
>                 URL: https://issues.apache.org/jira/browse/CAMEL-24407
>             Project: Camel
>          Issue Type: Bug
>          Components: came-core
>    Affects Versions: 4.10.7, 4.18.2
>            Reporter: Ivan Ravin
>            Assignee: Karol Krawczyk
>            Priority: Major
>             Fix For: 4.22.1, 4.23.0, 4.18.5
>
>
> Simple language predicate fails with NumberFormatException when comparing 
> long digital strings (for example, bank accounts). It worked at least in 
> camel 2, but not in camel 4
> {code:java}
> from("timer:test?repeatCount=1&delay=1000")
> .setHeader("Account1").constant("12345678901234567890")
> .setHeader("Account2").constant("12345678901234567890")
> .filter().simple("${header.Account1} == ${header.Account2}")
>       .log(org.apache.camel.LoggingLevel.INFO, "Accounts equals")
> .end();
> {code}



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

Reply via email to