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

clientRequestValidation does not validate existence of POST request body

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Cannot Reproduce
    • 2.22.1
    • None
    • rest
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: