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

rest-dsl - automatic binding failure with waitForTaskToComplete=Never

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.17.2
    • Fix Version/s: 2.18.0
    • Component/s: camel-core
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      Hello,
      Into my project i am using rest dsl.

      when insert into my seda waitForTaskToComplete=Never attribute, automatic binding (json) is disabled!!!!

      I create a simple camel example (see attachment)

      To simulate it:
      1. extract zip file
      2. run "mvn clean camel:run"

      TEST SUCCESS

      curl -X GET -H "Content-type: application/json" -H "Accept: application/json" localhost:8080/test/ok"

      OUTPUT (JSON):

      {
      "id" : 100.0
      }

      TEST FAILURE

      curl -X GET -H "Content-type: application/json" -H "Accept: application/json"localhost:8080/test/failure"

      OUTPUT (HashMap.toString()):

      {id=100.0}

      Best regards

      FabryProg

        Attachments

        1. camel-10154.zip
          6 kB
          Fabrizio Spataro

          Activity

            People

            • Assignee:
              davsclaus Claus Ibsen
              Reporter:
              fabryprog Fabrizio Spataro
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: