-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Mark,
On 2/8/12 3:37 PM, Mark Thomas wrote: > On 08/02/2012 20:35, Christopher Schultz wrote: >> Can anyone think of a reason I can't just [chop-off everything >> after the first ";"]? > > Yes. Path parameters can occur at any part of the path. So a URI could look like this: /context/something;p1=val;p2=val/morestuff ... and that URI would match /context/something/morestuff as a uri-pattern for, say, filter or servlet mappings? Does Tomcat attempt to ignore path parameters when going these types of matches? (I'd read the code, but the mapper is, as you know... complex). Path segments are separated by / characters, so perhaps I could adjust my "ignore the path parameters" algorithm to work like this: Starting from the end of the URI, rewind until I hit a "/", then go forward until I hit a ";", then trim forward from the ";". Or, I could just say "ignore anything like ';jsessionid=[0-9A-Za-z]*'", but that's a little presumptuous and potentially fragile as well. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.17 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk8y6C8ACgkQ9CaO5/Lv0PChyQCgjsvYPmYAr1IIuIQa+5ekDpxt HOoAoINk5GT4+LjEbhGqS6JzcWvRGs+O =B4T7 -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org