When the application is configured to send session-id using requested URI instead of cookies, SessionHandler is unable to get the sessionId unless it is the last parameter in the URI.
This error seems to happen in all jetty versions. I've checked versions 6.1.21 and 7.0.x.
I attach a patch for the versions 7.0.0 and 7.0.1 (with tests) which fixes the problem.
I have checked this issue in Tomcat and it handles both cases without problems
When the application is configured to send session-id using requested URI instead of cookies, SessionHandler is unable to get the sessionId unless it is the last parameter in the URI.
For instance, in the case of these two URL's, SessionHandler only gets the sessionid in the first one:
1.- http://www.foo.com/myservlet.do;jsessionid=xxxx?param1=1¶m2=2
2.- http://www.foo.com/myservlet.do;jsessionid=xxxx;moreinfo=yyy?p1=1&p2=2
This error seems to happen in all jetty versions. I've checked versions 6.1.21 and 7.0.x.
I attach a patch for the versions 7.0.0 and 7.0.1 (with tests) which fixes the problem.
I have checked this issue in Tomcat and it handles both cases without problems
Regards
Manolo Carrasco Moņino
Greg Wilkins added a comment - 02/Mar/10 3:36 AM ah I see you have a test harness... I coopted another test harness, but will add yours as well.
cheers
see also https://bugs.eclipse.org/bugs/show_bug.cgi?id=304307