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

camel-core - simple("${body} starts with /startsWith 'xyz'") fails

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.6.0
    • 3.12.0
    • came-core
    • None
    • Unknown

    Description

      Hello,

      since Camel Version 3.6 simple language operator "starts with" / "startsWith" is buggy.

      This works with camel 3.5

      • .when(simple("${body} starts with '010'"))
      • .when(simple("${body} startsWith '010'"))
      • .when(bodyAs(String.class).startsWith("010")) 

      This works with camel 3.6 only

      • .when(bodyAs(String.class).startsWith("010")) 

      See also TestCase StartsWithTest.java.

      Regards.

       

      Attachments

        1. StartsWithTest.java
          2 kB
          Onlinee

        Issue Links

          Activity

            People

              davsclaus Claus Ibsen
              Onlinee Onlinee
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: