hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kalnichevski, Oleg" <oleg.kalnichev...@bearingpoint.com>
Subject RE: [PATCH] Cookie's domain attribute check turned out to be case sensitive
Date Fri, 29 Nov 2002 19:31:15 GMT
Adam, give it a shot with a new patch. I have changed the parse method quite a bit. If the
problem persists, just let me know. 

What I can see from the logs you have attached is that the server does not explicitly specifies
cookie's version attribute. The new Httpclient should handle this kind of situations better

Oleg

-----Original Message-----
From: Adam Jack [mailto:ajack@TrySybase.com]
Sent: Friday, November 29, 2002 7:40 PM
To: 'Commons HttpClient Project'
Subject: RE: [PATCH] Cookie's domain attribute check turned out to be
case sensitive


JSD wrote:

> Committed.  Thanks Oleg.
> Adam, please give a current build a shot.

I've downloaded the build from:

	http://gump.covalent.net/jars/latest/jakarta-commons/

I tried yesterday (early whilst getting the Turkey up and to room
temperature for it's big day) and got the same result. Perhaps I was too
early.

I tried again just now with last night's build. Although the result is
different (it no longer complaining about the domain attribute) it isn't as
I suspect is correct (see below.) Now it complains about "different path".

Thanks for your efforts.

regards

Adam

----------------------------------------------------------------------------
----------------------

org.apache.commons.httpclient.HttpException: Bad Set-Cookie header:
sID=172.20.2.225.1038594731743097; path=/; domain=.TrySybase.com,
sID=172.20.2.225.1038594731743097; path=/; domain=.TrySybase.com Header
targets a different path, found "/" for "http://www.TrySybase.com/"
        at org.apache.commons.httpclient.Cookie.parse(Cookie.java:1016)
        at
org.apache.commons.httpclient.HttpMethodBase.processResponseHeaders(HttpMeth
odBase.java:1445)
        at
org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.jav
a:1530)
        at
org.apache.commons.httpclient.HttpMethodBase.processRequest(HttpMethodBase.j
ava:2182)
        at
org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:820
)
        at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:455)
        at com.trysybase.net.robot.Robot.performTask(Robot.java:186)
        at com.trysybase.net.robot.Robot.perform(Robot.java:100)
        at com.trysybase.net.robot.Robot.main(Robot.java:403)


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


Mime
View raw message