You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jmeter-dev@jakarta.apache.org by Bill Herndon <bh...@kodakgallery.com> on 2005/12/21 18:59:51 UTC

JMeter 2.1.1 Processing of Set-Cookie Headers

All,

OK...realize that I probably posted this to the wrong list.  So here goes again...

I could not find a reference in the Bugzilla to any issues dealing with JMeter's processing of set-cookie headers (v2.1.1), but I think that there may be a bug...

Looks to me liike when a set-cookie header containing no path attribute is received, the entire requested URL, including the page itself, is used for the lookup key.  So that, on the next request, no cookie headers are added unless the page is the exact same page as in previous request.  Really bolluxes-up my test plans that use redirects during logon. 

I know that the Netscape cookie specification is not clear on this topic, but most browsers seem to interpret the lack of a path attribute as "use the root path" (i.e., "/").  I've patched this in my own version of 2.1.1.  For the developers in the group the problem seems to be at lines 327 through 333 of class org.apache.jmeter.protocol.http.control.CookieManager.java.

Anybody know about this?  Patched already, maybe (he said hopefully)?

Thanks,

Bill

_________________________________________________
William Herndon                           Kodak Imaging Network
bherndon@kodakgallery.com                       510.229.1114



Re: JMeter 2.1.1 Processing of Set-Cookie Headers

Posted by sebb <se...@gmail.com>.
On 21/12/05, Bill Herndon <bh...@kodakgallery.com> wrote:
> All,
>
> OK...realize that I probably posted this to the wrong list.  So here goes again...
>
> I could not find a reference in the Bugzilla to any issues dealing with JMeter's processing of set-cookie headers (v2.1.1), but I think that there may be a bug...

Might be an idea to create a Bugzilla issue then ...

> Looks to me liike when a set-cookie header containing no path attribute is received, the entire requested URL, including the page itself, is used for the lookup key.  So that, on the next request, no cookie headers are added unless the page is the exact same page as in previous request.  Really bolluxes-up my test plans that use redirects during logon.
>
> I know that the Netscape cookie specification is not clear on this topic, but most browsers seem to interpret the lack of a path attribute as "use the root path" (i.e., "/").  I've patched this in my own version of 2.1.1.  For the developers in the group the problem seems to be at lines 327 through 333 of class org.apache.jmeter.protocol.http.control.CookieManager.java.
>
> Anybody know about this?  Patched already, maybe (he said hopefully)?

Have you tried the latest nightly?

If you have a patch, you can add this as an attachment to the Bugzilla
issue (once created).

> Thanks,
>
> Bill
>
> _________________________________________________
> William Herndon                           Kodak Imaging Network
> bherndon@kodakgallery.com                       510.229.1114
>
>
>
>

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