#153 Cookie.parse fails in parsing

Lawrence Schapker <[email protected]>
Newsgroups gmane.comp.java.grinder.user
Message-ID <CALAyBv5qR=dKeoaS+jjx=vTCtwyLBDpr2s9GnAWonm3DdK5avQ@mail.gmail.com>
Hello to all,

I have encountered a similar (if not the same) issue to the existing bug
(#153).  I have attempted to use the existing patch, but I am still
encountering the issue.

Before the patch, the error reported was:
net.grinder.scriptengine.jython.JythonScriptExecutionException: Java
exception calling TestRunner
    result2 = request102.GET('/accounts/login/' + '?next=/about/')
    File
"/home/lschapker/repository/Perf-Projects/DeadwoodDashboard/scripts/
testrun.modified.py", line 225, in page1
    self.page1()      # GET / (requests 101-107)
    File
"/home/lschapker/repository/Perf-Projects/DeadwoodDashboard/scripts/
testrun.modified.py", line 387, in __call__
java.net.ProtocolException: Bad Set-Cookie header:
csrftoken=84686b4fe5885713e89a08028d9a06df; Max-Age=31449600; Path=/,
sessionid=9ad74e282ddf0fc000c6a55097f27ce9; expires=Thu, 05-Dec-2013
07:18:12 GMT; Max-Age=28800; Path=/;, secure
No '=' found for token starting at position 177
    at HTTPClient.Cookie.parse(Cookie.java:196)
~[grinder-httpclient-3.11.jar:na]

After the patch:
net.grinder.scriptengine.
jython.JythonScriptExecutionException: Java exception calling TestRunner
    result2 = request102.GET('/accounts/login/' + '?next=/about/')
    File "/home/itperf/it/apt/performance/projects/temp/larrys.py", line
225, in page1
    self.page1()      # GET / (requests 101-107)
    File "/home/itperf/it/apt/performance/projects/temp/larrys.py", line
387, in __call__
java.net.ProtocolException: Bad Set-Cookie header:
csrftoken=999d6c278c6320813f45587eefbfd12d; Max-Age=31449600; Path=/,
sessionid=b0cbf6d891097afdd32b124fad3ede54; expires=Thu, 05-Dec-2013
08:08:48 GMT; Max-Age=28800; Path=/;HttpOnly; secure
No '=' found for token starting at position 175
    at HTTPClient.Cookie.parse(Cookie.java:263) ~[patch2952023.jar:na]

I can see that the patch did something (i.e. changed "Path=/;, secure" to
"Path=/;HttpOnly; secure"), but the code is still looking for a "=" that
doesn't exist.

Any assistance would be greatly appreciated!

Thank you!

Larry Schapker
Senior Performance Engineer
Salesforce.com
Using Grinder 3.11 on Linux

------------------------------------------------------------------------------
Sponsored by Intel(R) XDK 
Develop, test and display web and hybrid apps with a single code base.
Download it for free now!
http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk

_______________________________________________
grinder-use mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/grinder-use
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.