[ grinder-Bugs-3489034 ] Ignore HttpOnly attributes in the middle of cookies

SourceForge.net <[email protected]> Sat, 18 Feb 2012 07:40:33 -0800
Newsgroups gmane.comp.java.grinder.devel
Message-ID <[email protected]>
Bugs item #3489034, was opened at 2012-02-18 07:31
Message generated for change (Settings changed) made by philipa
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=118598&aid=3489034&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: HTTP Plugin
Group: None
>Status: Closed
Resolution: None
Priority: 5
Private: No
Submitted By: Philip Aston (philipa)
Assigned to: Philip Aston (philipa)
Summary: Ignore HttpOnly attributes in the middle of cookies

Initial Comment:
>From Alex Crane:

net.grinder.scriptengine.jython.JythonScriptExecutionException: Java
exception calling TestRunner
       File "C:\Users\ACrane\Projects\LoadTesting\obi11g\bin\.\Sliver-file-store\current\obi_login_test.py",
line 26, in __call__
java.net.ProtocolException: Bad Set-Cookie header:
ORA_BIPS_LBINFO=1358c8477c0;, ORA_BIPS_NQID=; path=/analytics;
httponly; expires=Thu, 01 Jan 1970 00:00:00 GMT, ORA_BIPS_NQID=;
path=/xmlpserver; httponly; expires=Thu, 01 Jan 1970 00:00:00 GMT,
ORA_BIPS_ATGKEY=; path=/analytics; httponly; expires=Thu, 01 Jan 1970
00:00:00 GMT

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

Comment By: Philip Aston (philipa)
Date: 2012-02-18 07:40

Message:
Fixed for next version.
http://grinder.git.sourceforge.net/git/gitweb.cgi?p=grinder/grinder;a=commitdiff;h=967edbea741e224fde50081611ff86a449cb028e

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

Comment By: Philip Aston (philipa)
Date: 2012-02-18 07:36

Message:
Related to
http://sourceforge.net/tracker/index.php?func=detail&aid=2952023&group_id=18598&atid=118598


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

Comment By: Philip Aston (philipa)
Date: 2012-02-18 07:33

Message:
Alex worked around it by adding 

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

to the other workarounds. I think

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

is better and will avoid messing up valid cookies.

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

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

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/