DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23866>. 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: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] The bug reported by Oliver Köll <listen at quimby.de> on HttpClient mailing list <quote> 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.<init>(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. </quote> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
