Return-Path: X-Original-To: apmail-camel-issues-archive@minotaur.apache.org Delivered-To: apmail-camel-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8A8AA10BE7 for ; Mon, 16 Feb 2015 13:05:12 +0000 (UTC) Received: (qmail 26584 invoked by uid 500); 16 Feb 2015 13:05:12 -0000 Delivered-To: apmail-camel-issues-archive@camel.apache.org Received: (qmail 26548 invoked by uid 500); 16 Feb 2015 13:05:12 -0000 Mailing-List: contact issues-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list issues@camel.apache.org Received: (qmail 26538 invoked by uid 99); 16 Feb 2015 13:05:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Feb 2015 13:05:12 +0000 Date: Mon, 16 Feb 2015 13:05:12 +0000 (UTC) From: "Claus Ibsen (JIRA)" To: issues@camel.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CAMEL-5806) DefaultHttpBinding shouldn't assume null payload if HttpMethod == GET MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CAMEL-5806?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:all-tabpanel ] Claus Ibsen updated CAMEL-5806: ------------------------------- Component/s: camel-jetty camel-http4 > DefaultHttpBinding shouldn't assume null payload if HttpMethod =3D=3D GET > --------------------------------------------------------------------- > > Key: CAMEL-5806 > URL: https://issues.apache.org/jira/browse/CAMEL-5806 > Project: Camel > Issue Type: Improvement > Components: camel-http, camel-http4, camel-jetty > Reporter: Ra=C3=BAl Kripalani > Assignee: Claus Ibsen > Priority: Minor > Fix For: 2.15.0 > > > 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 paylo= ad with a GET request. Take a look at the [search operation|http://www.elas= ticsearch.org/guide/reference/api/search/] in the Elastic Search API, as an= example. -- This message was sent by Atlassian JIRA (v6.3.4#6332)