Return-Path: Delivered-To: apmail-jakarta-commons-httpclient-dev-archive@www.apache.org Received: (qmail 24045 invoked from network); 16 Oct 2003 15:05:37 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 16 Oct 2003 15:05:37 -0000 Received: (qmail 11609 invoked by uid 500); 16 Oct 2003 15:05:19 -0000 Delivered-To: apmail-jakarta-commons-httpclient-dev-archive@jakarta.apache.org Received: (qmail 11578 invoked by uid 500); 16 Oct 2003 15:05:19 -0000 Mailing-List: contact commons-httpclient-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Commons HttpClient Project" Reply-To: "Commons HttpClient Project" Delivered-To: mailing list commons-httpclient-dev@jakarta.apache.org Received: (qmail 11536 invoked from network); 16 Oct 2003 15:05:18 -0000 Received: from unknown (HELO exchange.sun.com) (192.18.33.10) by daedalus.apache.org with SMTP; 16 Oct 2003 15:05:18 -0000 Received: (qmail 25777 invoked by uid 50); 16 Oct 2003 15:08:26 -0000 Date: 16 Oct 2003 15:08:26 -0000 Message-ID: <20031016150826.25776.qmail@nagoya.betaversion.org> From: bugzilla@apache.org To: commons-httpclient-dev@jakarta.apache.org Cc: Subject: DO NOT REPLY [Bug 23866] New: - Invalid cookie causing IllegalArgumentException X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23866 Invalid cookie causing IllegalArgumentException Summary: Invalid cookie causing IllegalArgumentException Product: Commons Version: Nightly Builds Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: Other Component: HttpClient AssignedTo: commons-httpclient-dev@jakarta.apache.org ReportedBy: olegk@apache.org The bug reported by Oliver Köll on HttpClient mailing list I'm dealing with a site that serves invalid Cookies in various kind of ways. In some cases the Cookie values contain "," characters, which really confuses the Header/Cookie parsers and eventually leads to IllegalArgumentExceptions thrown by the Cookie constructor: java.lang.IllegalArgumentException: Cookie name may not be blank at org.apache.commons.httpclient.Cookie.(Cookie.java:142) at org.apache.commons.httpclient.cookie.CookieSpecBase.parse(CookieSpecBase .java:192) at org.apache.commons.httpclient.cookie.CookieSpecBase.parse(CookieSpecBase .java:256) at org.apache.commons.httpclient.HttpMethodBase.processResponseHeaders(Http MethodBase.java:1826) at org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase .java:1939) at org.apache.commons.httpclient.HttpMethodBase.processRequest(HttpMethodBa se.java:2631) at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java :1085) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:6 74) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:5 29) at my.code.Test.getHttp(Test.java:114) What bothers me, is that these IllegalArgumentExceptions are never caught in the HttpClient code, making it effectivily impossible to handle these responses. --------------------------------------------------------------------- To unsubscribe, e-mail: commons-httpclient-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-httpclient-dev-help@jakarta.apache.org