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

Camel REST deserializes response to wrong type

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.7.1
    • Fix Version/s: 3.7.2, 3.8.0
    • Component/s: None
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      Camel REST component deserializes response to wrong type when the type is configured using outType parameter. I attached test demonstrating the issue. It runs fine in Camel 3.7.0.

      My observation is that both routes share the same DataFormat instance which is configured by first route and used by the second one. I think the problem might be not in the REST component itself but due to recent changes in data format cache'ing (CAMEL-16032, CAMEL-16045).

        Attachments

        1. RestDataformatTest.java
          3 kB
          Krzysztof Jamróz

          Activity

            People

            • Assignee:
              davsclaus Claus Ibsen
              Reporter:
              krzysztofjamroz Krzysztof Jamróz
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: