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

clientRequestValidation does not validate existence of POST request body

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Cannot Reproduce
    • Affects Version/s: 2.22.1
    • Fix Version/s: None
    • Component/s: rest
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      According to the documentation the `clientRequestValidation` option should validate the existence of the client request body for POST requests.

      However, when we send POST requests to a camel rest endpoint that has the option enabled, a null body is passed to the camel routes afterwards.

       

      There seems to be a `requiredBody` flag in the RestBindingAdvice.java class, but this always evalutates to `false`, and there does not seem to be a way to set it in the configuration

        Attachments

          Activity

            People

            • Assignee:
              ramu11 Ramu
              Reporter:
              pulse00 Robert Gr√ľndler
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: