Re: RequestDumperValve screws UTF-8 parameter parsing

2006-01-10 Thread Tim Funk
The first thing a servlet (or filter) should do is set the encoding before touching the request parameters. Its not intended to be called somewhere late in the processing lifecycle. Since a Valve executes before any javax.servlet code - all bets are off (for the request encoding) based on the wa

Re: RequestDumperValve screws UTF-8 parameter parsing

2006-01-10 Thread Oded Arbel
On Tuesday, 10 בJanuary 2006 11:16, Endre Stølsvik wrote: > On Tue, 10 Jan 2006, Oded Arbel wrote: > | AFAIK, the catalina implementation of HttpServletRequest does not > | allow to set the character set more then once, even though it > | doesn't do any pre-processing of the input. > | > | Maybe th

Re: RequestDumperValve screws UTF-8 parameter parsing

2006-01-10 Thread Jess Holle
Endre Stølsvik wrote: On Tue, 10 Jan 2006, Oded Arbel wrote: | On Tuesday, 10 ÿÿJanuary 2006 00:06, Endre Stølsvik wrote: | > Enabling the RequestDumperValve in both 5.5.12 and 5.0.16 (!) messes | > up the parsing of other-than-ISO-8859-1 incoming parameters. | > | > After using a rather huge b

Re: RequestDumperValve screws UTF-8 parameter parsing

2006-01-10 Thread Endre Stølsvik
On Tue, 10 Jan 2006, Oded Arbel wrote: | On Tuesday, 10 ÿÿJanuary 2006 00:06, Endre Stølsvik wrote: | > Enabling the RequestDumperValve in both 5.5.12 and 5.0.16 (!) messes | > up the parsing of other-than-ISO-8859-1 incoming parameters. | > | > After using a rather huge bunch of hours, this came

Re: RequestDumperValve screws UTF-8 parameter parsing

2006-01-10 Thread Endre Stølsvik
On Mon, 9 Jan 2006, Mark Thomas wrote: | Endre Stølsvik wrote: | > Enabling the RequestDumperValve in both 5.5.12 and 5.0.16 (!) messes up | > the parsing of other-than-ISO-8859-1 incoming parameters. | > | > After using a rather huge bunch of hours, this came down as the result: | > when this "d

Re: RequestDumperValve screws UTF-8 parameter parsing

2006-01-10 Thread Oded Arbel
On Tuesday, 10 בJanuary 2006 00:06, Endre Stølsvik wrote: > Enabling the RequestDumperValve in both 5.5.12 and 5.0.16 (!) messes > up the parsing of other-than-ISO-8859-1 incoming parameters. > > After using a rather huge bunch of hours, this came down as the > result: when this "debug valve" is tu

Re: RequestDumperValve screws UTF-8 parameter parsing

2006-01-09 Thread Jess Holle
I've produced my own servlet filter to get around this -- which does not dump request parameters until *after* the request has completed. With almost no additional effort you can then add request elapsed time, etc, etc, to this. Mark Thomas wrote: Endre Stølsvik wrote: Enabling the Requ

Re: RequestDumperValve screws UTF-8 parameter parsing

2006-01-09 Thread Mark Thomas
Endre Stølsvik wrote: > Enabling the RequestDumperValve in both 5.5.12 and 5.0.16 (!) messes up > the parsing of other-than-ISO-8859-1 incoming parameters. > > After using a rather huge bunch of hours, this came down as the result: > when this "debug valve" is turned on, it seems to default to ISO

RequestDumperValve screws UTF-8 parameter parsing

2006-01-09 Thread Endre Stølsvik
Enabling the RequestDumperValve in both 5.5.12 and 5.0.16 (!) messes up the parsing of other-than-ISO-8859-1 incoming parameters. After using a rather huge bunch of hours, this came down as the result: when this "debug valve" is turned on, it seems to default to ISO-8859-1 when it parses and l