Re: session lost with tomcat 4.1.21 (4.1.18)& utf-8 url's?
"Max Cooper" <[email protected]> Thu, 27 Mar 2003 03:09:23 -0800
| Newsgroups | gmane.comp.java.securityfilter.user |
|---|---|
| Message-ID | <00a401c2f451$5451cad0$6401a8c0@ozzy> |
----- Original Message ----- From: "Torgeir Veimo" <[email protected]> > > Maybe the config file can follow the exact same rules for utf encoded > paths as browsers do, so that a path can be specified as > /main%2Fpages%2Fgroups . There's no need to use the % sign in any other > way anyway? That makes sense to me. I am sure that there is some way to encode the '%' character so that it can still be used in url-patterns if needed. I don't see much use for it, either, but I'd hate to eat it and find out that it is useful later. > > I think that securityfilter should decode the path, since when a browser > encounteres a url such as /pages/æøåæøåhmm/, it might choose to encode > the '/'s as well. Furthermore, a browser might encode with both > utf-8/16/32, and isolatin1 chars encodes differently in utf-8 than > utf-16. I will add url-pattern decoding. I already fixed the other part of this issue, so I should have a release ready soon with the complete solution. I am rather time constrained this week, but I want to get a fix out quickly and I can never get to sleep anyway, so it will probably be in the next few days. :-) > > The strange thing was that the session was lost. Did you find any > possible reason for that? My testing found that if the '/'s was not > utf-8 encoded, the session was intact. I didn't find anything that is an obvious explanation for that. Hopefully the general fix will also fix that problem. It seems like there is a good chance since the utf encoding of the URL seems to trigger the problem. -Max > > -- > Torgeir Veimo <[email protected]> > > > > ------------------------------------------------------- > This SF.net email is sponsored by: > The Definitive IT and Networking Event. Be There! > NetWorld+Interop Las Vegas 2003 -- Register today! > http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en > _______________________________________________ > securityfilter-user mailing list > securityfilter-user-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org > https://lists.sourceforge.net/lists/listinfo/securityfilter-user > ------------------------------------------------------- This SF.net email is sponsored by: The Definitive IT and Networking Event. Be There! NetWorld+Interop Las Vegas 2003 -- Register today! http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en