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

Simple expression behavior change after 3.4->3.7 migration

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.7.3, 3.8.0
    • 3.7.4, 3.10.0
    • camel-core
    • None
    • Unknown
    • Regression

    Description

      I just upgraded from camel 3.4 to 3.8. I had a logger statement as follows in my application. I was printing exchange body as follows in a log statement

      .log("API response received is ==> ${body}")

      Prior to upgrade, the above log statement prints the exchange body perfectly by evaluating ${body} expression

      However, after upgrade, it prints as following

      API response received is ==> body

       

      On further digging, just figured that if you happen to add a property with key "body", then it causes the above unexpected behavior. Attaching a screenshot which illustrates the problem with a simple camel route 

       

       This issue was also discussed on zulip - https://camel.zulipchat.com/#narrow/stream/257298-camel/topic/Upgrade.20from.203.2E4.20to.203.2E7.20.2F.2F.20Simple.20expression.20behavior 

      Attachments

        1. camel-expression-bug.png
          245 kB
          Hokutor

        Activity

          People

            davsclaus Claus Ibsen
            hokutor Hokutor
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: