Return-Path: Delivered-To: apmail-jakarta-httpcomponents-dev-archive@www.apache.org Received: (qmail 75099 invoked from network); 28 Apr 2007 17:06:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 28 Apr 2007 17:06:37 -0000 Received: (qmail 92946 invoked by uid 500); 28 Apr 2007 17:06:43 -0000 Delivered-To: apmail-jakarta-httpcomponents-dev-archive@jakarta.apache.org Received: (qmail 92922 invoked by uid 500); 28 Apr 2007 17:06:43 -0000 Mailing-List: contact httpcomponents-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpComponents Project" Delivered-To: mailing list httpcomponents-dev@jakarta.apache.org Received: (qmail 92895 invoked by uid 99); 28 Apr 2007 17:06:42 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 28 Apr 2007 10:06:42 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 28 Apr 2007 10:06:35 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 89C77714049 for ; Sat, 28 Apr 2007 10:06:15 -0700 (PDT) Message-ID: <26696316.1177779975561.JavaMail.jira@brutus> Date: Sat, 28 Apr 2007 10:06:15 -0700 (PDT) From: "Roland Weber (JIRA)" To: httpcomponents-dev@jakarta.apache.org Subject: [jira] Updated: (HTTPCLIENT-650) Wire log is incomplete if HttpParser detects an error In-Reply-To: <32838754.1177763655523.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HTTPCLIENT-650?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Roland Weber updated HTTPCLIENT-650: ------------------------------------ Attachment: 2k7-04-28-wire-log.txt Sebastian, thanks a lot for figuring this out. The situation is indeed even a bit worse, because what is logged is not the actual input from the wire, but what is returned by the parser. That's after stripping ignorable whitespace and concatenating continuation lines. Attached patch moves wire logging for headers (but not for the status line) from HttpMethodBase to HttpParser.readLine(...). Somebody please review this _carefully_. I know it compiles, but I don't have the environment set up to test whether it actually logs as expected... cheers, Roland > Wire log is incomplete if HttpParser detects an error > ----------------------------------------------------- > > Key: HTTPCLIENT-650 > URL: https://issues.apache.org/jira/browse/HTTPCLIENT-650 > Project: HttpComponents HttpClient > Issue Type: Bug > Components: HttpClient > Affects Versions: 3.1 RC1 > Reporter: Sebb > Priority: Minor > Attachments: 2k7-04-28-wire-log.txt > > > If HttpParser detects an error in any of the headers, it throws a ProtocolException > Although the failing header is included in the Exception detail, the headers leading up to the failure are not logged, which makes it hard to debug (and is quite confusing, as the PE does not appear to be related to the data that has been received). > This is because the wire-logging is done in the caller (HttpMethodDirector) which only logs the header if the parse succeeds. > Perhaps the Wire logging should be done at the point where the HttpParser reads the line. -- 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: httpcomponents-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org