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

camel-jsonpath - results from $.concat(...) seems to be cached on following calls

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Information Provided
    • 2.25.3
    • 2.25.4, 3.4.6, 3.7.4, 3.10.0
    • camel-jsonpath
    • None
    • Unknown

    Description

      The first result from $.concat(...) seems to be "cached"

      Eg, given json:

      {{

      {"payload": \{"id": 1, "first_name": "Marie", "last_name": "Rose" }

      }}}

      The expression:

      jsonpath("$.concat($.payload.first_name,\" \",$.payload.last_name)")

      Will always returns Marie Rose on following calls with different values in the input json.

      Please find attached reproducer maven project with junit test.

       

      Attachments

        1. jsonpath-issue.zip
          4 kB
          Stefano Linguerri

        Issue Links

          Activity

            People

              davsclaus Claus Ibsen
              eljeko Stefano Linguerri
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: