You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Robert Gründler (JIRA)" <ji...@apache.org> on 2018/11/15 08:57:00 UTC

[jira] [Created] (CAMEL-12938) clientRequestValidation does not validate existence of POST request body

Robert Gründler created CAMEL-12938:
---------------------------------------

             Summary: clientRequestValidation does not validate existence of POST request body
                 Key: CAMEL-12938
                 URL: https://issues.apache.org/jira/browse/CAMEL-12938
             Project: Camel
          Issue Type: Bug
          Components: rest
    Affects Versions: 2.22.1
            Reporter: Robert Gründler


According to the [documentation |[https://github.com/apache/camel/blob/master/camel-core/src/main/docs/rest-dsl.adoc#client-request-validation],] 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



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)