[ https://issues.apache.org/jira/browse/CAMEL-15807?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen resolved CAMEL-15807. --------------------------------- Resolution: Fixed > 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 > Assignee: Claus Ibsen > Priority: Minor > Fix For: 3.7.0 > > > 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. It works if > the contains operator is {{' 42'}} (prefixed by a space) or is {{'answer'}} > Can you have a look at it? Thank you very much. -- This message was sent by Atlassian Jira (v8.3.4#803005)