hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rick Mouritzen <Rick_Mourit...@symantec.com>
Subject HTTP POST with Fluent HC is broken with 4.3.3 release
Date Mon, 03 Mar 2014 20:17:14 GMT
The body method of org.apache.http.client.fluent.Request is broken. This breaks HTTP POSTs
via the static Request.Post factory method. I noticed this in the released 4.3.3 version.

The change happened in the following revisions:

Or on github.com:

Or you can use this search to find the changes:

The body method only only works when the Request object’s request member is an instance
of HttpEntityEnclosingRequest. However after the change above, this can never happen. 

It appears that refactoring done in the above revision above did not follow through to the
POST case.

(It seems this project doesn’t use unit tests. I’m not dogmatic or anything, but in this
case a unit test exercising each of the Request factory methods would have caught this.)

To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org

View raw message