Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-15807

Simple expression regression with contains operator in 3.6.0

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.6.0
    • 3.7.0
    • camel-language
    • None
    • Unknown
    • Regression

    Description

      Hello,

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

      Consider the following routes

      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");
      

      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.

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            antoine.dessaigne Antoine DESSAIGNE
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: