Return-Path: X-Original-To: apmail-hc-dev-archive@www.apache.org Delivered-To: apmail-hc-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1BE341138B for ; Thu, 22 May 2014 13:13:02 +0000 (UTC) Received: (qmail 32996 invoked by uid 500); 22 May 2014 13:13:02 -0000 Delivered-To: apmail-hc-dev-archive@hc.apache.org Received: (qmail 32966 invoked by uid 500); 22 May 2014 13:13:01 -0000 Mailing-List: contact dev-help@hc.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpComponents Project" Delivered-To: mailing list dev@hc.apache.org Received: (qmail 32951 invoked by uid 99); 22 May 2014 13:13:01 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 May 2014 13:13:01 +0000 Date: Thu, 22 May 2014 13:13:01 +0000 (UTC) From: "Oleg Kalnichevski (JIRA)" To: dev@hc.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HTTPCLIENT-1510) Expect/continue not working for HttpRequest objects that are implemented with an HttpRequestWrapper MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HTTPCLIENT-1510?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14005894#comment-14005894 ] Oleg Kalnichevski commented on HTTPCLIENT-1510: ----------------------------------------------- bq. Certain sorts of requests (multipart post being one of them) use HttpRequestWrapper internally to wrap the original request Then, they are supposed to do it correctly or better yet use HttpRequestWrapper#warp instead of class extension. If future HTTP protocol revisions define all HTTP methods are entity enclosing, we will have to do away with HttpEntityEnclosingRequest optional interface, but not until RFC 2616 is superseded by another RFC. I see no option other than rejecting the issue as invalid or making it a change request targeted at FUTURE (5.0 and beyond). Oleg > Expect/continue not working for HttpRequest objects that are implemented with an HttpRequestWrapper > --------------------------------------------------------------------------------------------------- > > Key: HTTPCLIENT-1510 > URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1510 > Project: HttpComponents HttpClient > Issue Type: Bug > Components: HttpClient > Affects Versions: 4.3.3 > Reporter: Karl Wright > > Certain sorts of requests (multipart post being one of them) use HttpRequestWrapper internally to wrap the original request. But the Expect/Continue processor has this check in it: > {code} > if (request instanceof HttpEntityEnclosingRequest) { > {code} > That effectively disables expect/continue for all wrapped requests, since HttpRequestWrapper is not derived from HttpEntityEnclosingRequest. > Suggestion: A better way to structure this would be to have a method in HttpRequest that the expect/continue processor would call, instead of doing an explicit instanceof class check. -- This message was sent by Atlassian JIRA (v6.2#6252) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org For additional commands, e-mail: dev-help@hc.apache.org