Return-Path: Delivered-To: apmail-hc-dev-archive@www.apache.org Received: (qmail 9378 invoked from network); 7 Sep 2010 20:49:17 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 7 Sep 2010 20:49:17 -0000 Received: (qmail 48519 invoked by uid 500); 7 Sep 2010 20:49:17 -0000 Delivered-To: apmail-hc-dev-archive@hc.apache.org Received: (qmail 48459 invoked by uid 500); 7 Sep 2010 20:49:16 -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 48447 invoked by uid 99); 7 Sep 2010 20:49:16 -0000 Received: from Unknown (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Sep 2010 20:49:16 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Sep 2010 20:48:59 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o87Kmbtv022208 for ; Tue, 7 Sep 2010 20:48:37 GMT Message-ID: <31524619.61461283892517197.JavaMail.jira@thor> Date: Tue, 7 Sep 2010 16:48:37 -0400 (EDT) From: "Sylvain Laurent (JIRA)" To: dev@hc.apache.org Subject: [jira] Created: (HTTPCLIENT-989) DefaultHttpRequestRetryHandler must not retry non-idempotent http methods (violates RFC 2616) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org DefaultHttpRequestRetryHandler must not retry non-idempotent http methods (violates RFC 2616) --------------------------------------------------------------------------------------------- Key: HTTPCLIENT-989 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-989 Project: HttpComponents HttpClient Issue Type: Bug Components: HttpClient Affects Versions: 4.1 Alpha2, 4.0.1 Reporter: Sylvain Laurent In DefaultHttpRequestRetryHandler, in case of NoHttpResponseException, the request is retried, without taking into account whether the http method is idempotent or not. This violates RFC 2616 section 8.1.4 which states : {quote} This means that clients, servers, and proxies MUST be able to recover from asynchronous close events. Client software SHOULD reopen the transport connection and retransmit the aborted sequence of requests without user interaction so long as the request sequence is idempotent (see section 9.1.2). Non-idempotent methods or sequences MUST NOT be automatically retried, although user agents MAY offer a human operator the choice of retrying the request(s). {quote} The fix is simple : at line 94, just remove the {{if (exception instanceof NoHttpResponseException) }} block. This way the idempotency of the method will be taken into account a bit further in the same method. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org For additional commands, e-mail: dev-help@hc.apache.org