[ grinder-Bugs-3431287 ] Cookie parsing problem in 3.6

SourceForge.net <[email protected]> Mon, 31 Oct 2011 17:20:12 +0000
Newsgroups gmane.comp.java.grinder.devel
Message-ID <[email protected]>
Bugs item #3431287, was opened at 2011-10-31 17:20
Message generated for change (Tracker Item Submitted) made by 
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=118598&aid=3431287&group_id=18598

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Jeremy ()
Assigned to: Nobody/Anonymous (nobody)
Summary: Cookie parsing problem in 3.6

Initial Comment:
Cookie parsing fails for a cookie like:

set_cookie="AAAA=XXX==; path=/; secure; HttpOnly, BBBB=; path=/; secure; HttpOnly; expires=Thursday, 01-Jan-1970 01:00:00 GMT"

Note that there are two cookies here, each with there own "HttpOnly".  The second does not put "HttpOnly" at the end of the cookie value, and the regex ReplaceAlls fail to strip it properly.

This can be corrected by adding a third regex in Cookie.java:

set_cookie = set_cookie.replaceAll("(?i);\\s*HttpOnly;", ";");


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

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=118598&aid=3431287&group_id=18598

------------------------------------------------------------------------------
Get your Android app more play: Bring it to the BlackBerry PlayBook 
in minutes. BlackBerry App World&#153; now supports Android&#153; Apps 
for the BlackBerry&reg; PlayBook&#153;. Discover just how easy and simple 
it is! http://p.sf.net/sfu/android-dev2dev