-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Peter,

On 7/24/2009 3:58 AM, Peter J. Farrell wrote:
> @Bill, thanks for mentioning the specific RFC referencing the encoding
> of ";".  That's what the team here figured out as well and it's nice to
> have an independent person verify our assumptions after reading the RFC
> sections.  Is it safe to assume that Tomcat code base assumes that
> anything after the ";" has to be the jsessionid?  That's our assumption
> at the moment.  Yes, there is a work around by using the
> request.getRequestURI()  instead as that has the whole URI and manually
> remove the "absolute" path to get the complete path info.
> 
> Since our framework is deployed on several different CFML servlets --
> their implementation to get at the original http request wrapper differs
> a bit (three different vendors).  We'll probably stick to use the poor
> man's encoding using a modified unicode representation of ";" in the
> end.  Another solution is to write a filter and use the getRequestURI()
> and replace the bad path info in the request with the full length version.

You could implement a Filter that wraps the request for these servlets.
The wrapped request would override the getPathInfo method and perform
the reverse-engineering of the path info you describe above.

This would allow you to "patch" your servlets all at once without
actually modifying their code, and without going through the backflips
of an alternate URI encoding.

You could also log a bug and see what happens. As Bill points out,
nobody has been motivated to fix this issue. If you log a bug and get
some feedback, perhaps you could fix it yourself and submit a patch (if
you're motivated). Or, maybe some other kind soul will submit a patch
for it. Since you are motivated to have it work for your application,
you are a good candidate to fix it :)

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkpqCj4ACgkQ9CaO5/Lv0PDBTQCfVb01DUBJmtCSyamIWgaGEZ1F
ab8An2uVpIy8L4gxpvqTDM5XRN0soWcn
=JC+6
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to