You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by bu...@apache.org on 2003/12/07 01:24:55 UTC

DO NOT REPLY [Bug 25264] - Cookie rejected

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=25264>.
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=25264

Cookie rejected





------- Additional Comments From ludovic_claude@hotmail.com  2003-12-07 00:24 -------
This patch solves the problem when using CookieSpecBase (COMPATIBILITY)

diff -r1.20 CookieSpecBase.java
424a425
>         String cookieDomain = cookie.getDomain();
430c431,434
<             if (!host.endsWith(cookie.getDomain())) {
---
>             // add a dot on the domain to match host myhost.net with cookie
domain .myhost.net
>             String testHost = "." + host;
>             if (!testHost.endsWith(cookieDomain)) {
432c436
<                     "Illegal domain attribute \"" + cookie.getDomain() 
---
>                     "Illegal domain attribute \"" + cookieDomain
436c440
<             if (!host.equals(cookie.getDomain())) {
---
>             if (!host.equals(cookieDomain)) {
438c442
<                     "Illegal domain attribute \"" + cookie.getDomain() 
---
>                     "Illegal domain attribute \"" + cookieDomain

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-httpclient-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-httpclient-dev-help@jakarta.apache.org