Quantcast

Cookie Parsing Issue

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Cookie Parsing Issue

Dr Chris Barran

The Cookie.parse method seems to be  mangling this perfectly valid cookie.
Set-Cookie: nap.sid=s%3Ams3rfahjl9mCHmula5U1vv9H.sJGkzJojCliyoDUJgDNv30rjC0CqoRvVqaa%2B3j4z0V8; Path=/nap; HttpOnly; Secure

And turning it into
Set-Cookie: nap.sid=s%3AEz2JzmmKmISynN7nPujVwjO%2B.gxgOhA6ovhajiWRe8RZ9UHUKzjcBw1hl5f16cjMQ44I; Path=/nap;, Secure

Which it then announces is an Invalid cookie and exits.

I'm trying to use version 3.11

I raised a bug for it.


Also I'm trying to build the latest version to test / patch this issue as it looks like just some over zealous regexp but I'm getting build failures.

Can't seem to build without running tests and some tests fail.  You don't seem to have a lot of documentation on how to set up a sane build environment.

Any help appreciated.  what should this jython2_5_3.dir property be set to and where do I set it?  

Actually I seem to have jython 2.5.2 installed will that be a problem?



Running net.grinder.scriptengine.jython.instrumentation.dcr.TestJython25Instrumenter

Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec <<< FAILURE!

initializationError(net.grinder.scriptengine.jython.instrumentation.dcr.TestJython25Instrumenter)  Time elapsed: 0.001 sec  <<< FAILURE!

java.lang.AssertionError: jython2_5_3.dir property is set, but value [/opt/jython/jython2.5.3] is not a directory

at org.junit.Assert.fail(Assert.java:88)

at org.junit.Assert.assertTrue(Assert.java:41)

at net.grinder.testutility.JythonVersionRunner.getHomes(JythonVersionRunner.java:101)

at net.grinder.testutility.Jython25_27Runner.<clinit>(Jython25_27Runner.java:41)

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)

at java.lang.reflect.Constructor.newInstance(Constructor.java:513)

at org.junit.internal.builders.AnnotatedBuilder.buildRunner(AnnotatedBuilder.java:29)

at org.junit.internal.builders.AnnotatedBuilder.runnerForClass(AnnotatedBuilder.java:21)

at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:59)

at org.junit.internal.builders.AllDefaultPossibilitiesBuilder.runnerForClass(AllDefaultPossibilitiesBuilder.java:26)

at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:59)

at org.junit.internal.requests.ClassRequest.getRunner(ClassRequest.java:26)

at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:250)

at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141)

at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:597)

at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)

at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)

at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)

at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)

at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)


--
-- 
Dr Christopher Barran
Senior Developer
Corporate Information & Computing Services
The University of Sheffield
10-12 Brunswick Street
Sheffield
S10 2FN
England
Tel: +44 114 2221193


------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. A cloud service to automate IT design, transition and operations
2. Dashboards that offer high-level views of enterprise services
3. A single system of record for all IT processes
http://p.sf.net/sfu/servicenow-d2d-j
_______________________________________________
Grinder-development mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/grinder-development
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Cookie Parsing Issue

Philip Aston-2
On 10/06/13 12:23, Dr Chris Barran wrote:

The Cookie.parse method seems to be  mangling this perfectly valid cookie.
Set-Cookie: nap.sid=s%3Ams3rfahjl9mCHmula5U1vv9H.sJGkzJojCliyoDUJgDNv30rjC0CqoRvVqaa%2B3j4z0V8; Path=/nap; HttpOnly; Secure

And turning it into
Set-Cookie: nap.sid=s%3AEz2JzmmKmISynN7nPujVwjO%2B.gxgOhA6ovhajiWRe8RZ9UHUKzjcBw1hl5f16cjMQ44I; Path=/nap;, Secure

Which it then announces is an Invalid cookie and exits.

I'm trying to use version 3.11

I raised a bug for it.


Thanks Chris. I don't have many cycles at the moment - hopefully I'll triage this at the weekend.

Also I'm trying to build the latest version to test / patch this issue as it looks like just some over zealous regexp but I'm getting build failures.

Can't seem to build without running tests and some tests fail.  You don't seem to have a lot of documentation on how to set up a sane build environment.

Any help appreciated.  what should this jython2_5_3.dir property be set to and where do I set it? 


Comment the property out of the maven-surefire-plugin configuration in grinder-core/pom.xml, or fix it to point to a real 2.5.3 installation.

- Phil


------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Grinder-development mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/grinder-development
Loading...