camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Raul Kripalani (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CAMEL-5806) DefaultHttpBinding shouldn't assume null payload if HttpMethod == GET
Date Mon, 19 Nov 2012 15:42:58 GMT
Raul Kripalani created CAMEL-5806:
-------------------------------------

             Summary: DefaultHttpBinding shouldn't assume null payload if HttpMethod == GET
                 Key: CAMEL-5806
                 URL: https://issues.apache.org/jira/browse/CAMEL-5806
             Project: Camel
          Issue Type: Bug
            Reporter: Raul Kripalani
            Assignee: Raul Kripalani


Jetty Consumer: DefaultHttpBinding#parseBody inserts a null body into the message if the incoming
request is for HTTP Method GET.

If I'm not mistaken, according to the HTTP spec the payload is only null if the Content-Length
header is 0 or if it doesn't exist. Hence, we have a shortcoming in the Camel HTTP components.

Even though it's unusual, there are reasons why a client could send payload with a GET request.
Take a look at the [search operation|http://www.elasticsearch.org/guide/reference/api/search/]
in the Elastic Search API, as an example.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message