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

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

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Information Provided
    • Affects Version/s: 2.25.3
    • Fix Version/s: 2.25.4, 3.4.6, 3.7.4, 3.10.0
    • Component/s: camel-jsonpath
    • Labels:
      None
    • Estimated Complexity:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: