[ 
https://issues.apache.org/jira/browse/CAMEL-12938?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16721557#comment-16721557
 ] 

Claus Ibsen commented on CAMEL-12938:
-------------------------------------

Can you tell a bit which rest/http components you are using? 

I wonder if the null body is due to not using stream caching
http://camel.apache.org/why-is-my-message-body-empty.html

And it may be that one of the http/rest component does that and the others work 
with checking the body etc.

> 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.3#76005)

Reply via email to