You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Antoine DESSAIGNE (Jira)" <ji...@apache.org> on 2020/11/04 13:30:00 UTC

[jira] [Created] (CAMEL-15807) Simple expression regression with contains operator in 3.6.0

Antoine DESSAIGNE created CAMEL-15807:
-----------------------------------------

             Summary: Simple expression regression with contains operator in 3.6.0
                 Key: CAMEL-15807
                 URL: https://issues.apache.org/jira/browse/CAMEL-15807
             Project: Camel
          Issue Type: Bug
          Components: camel-language
    Affects Versions: 3.6.0
            Reporter: Antoine DESSAIGNE


Hello,

We noticed a regression in simple expressions that was introduced in Camel 3.6.0.

Consider the following routes
{noformat}
from("timer:foo?repeatCount=1")
    .setBody(constant("The answer is 42."))
    .choice()
        .when(simple("${body} contains '42'")).log("We have an answer")
        .otherwise().log("We don't have an answer");
{noformat}

It prints the "otherwise" message in Camel 3.6.0 but shouldn't.

Can you have a look at it? Thank you very much.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)