You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Brooks Harrelson <br...@cs.com> on 2003/11/13 04:07:06 UTC

Request dumper valve mangling the data?

We're on Tomcat 4.1.24

Turned on RequestDumperValve (just uncommented it in server.xml).

Seemed to work fine for correct MIME requests.

However, when any request (MIME or not) was submitted with this
Content-Type: application/x-www-form-urlencoded , the input request body
was transformed to garbage when it was presented to the servlet.
. (We know that MIME has to have a different Content-Type -- we were
debugging a 
middleware problem. There's one company that
wraps their XML in this content type.   It happened on
normal form input as well.)

The catalina log showed that RequestDumperValve received good input text
in the body, but by the time the servlet saw the HttpRequest, the body
of the request had been turned to binary garbage.  I believe, although I
haven't counted the bytes, that the size of the body is the same as the
original input -- but every character is replaced with this pattern:

char: 300 200 300 200 300 200 300 200 300 200 300 200 300 200 300 200
hex:     c080    c080    c080    c080    c080    c080    c080    c080

any ideas?

Thanks in advance,

Bill



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org