[ https://issues.apache.org/jira/browse/CAMEL-12938?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen resolved CAMEL-12938. --------------------------------- Resolution: Cannot Reproduce > 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 > Assignee: Ramu > Priority: Minor > > 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.14#76016)