tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: isHexDigit error problems and upgrading Tomcat and jdk
Date Sun, 10 Jun 2012 15:10:15 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Miguel,

On 6/7/12 5:51 PM, Miguel González Castaños wrote:
> 
>> That depends upon how you have configured your access log: you
>> can configure an access log to log only requests that failed and
>> the details of that request like this:
>> 
>> <Valve className="org.apache.catalina.valves.AccessLogValve" 
>> conditionIf="org.apache.catalina.parameter_parse_failed" .... />
>> 
>> You will probably want to put "%t" and "%r" in your pattern.
> 
> This looks interesting. In my test environment (with Tomcat 7 and
> java 1.7) it shows by default
> 
> <Valve className="org.apache.catalina.valves.AccessLogValve" 
> directory="logs" prefix="localhost_access_log." suffix=".txt" 
> pattern="%h %l %u %t &quot;%r&quot; %s %b" />
> 
> this should keep track of the errors just adding just the entry:
> 
> conditionIf="org.apache.catalina.parameter_parse_failed"

You'll never know what the POST contents were in this case. So, if the
broken parameter comes as part of the POST, you'll get no more
information than you would get in your usual access log (except that
you'll know the specific request failed).

- -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/

iEYEARECAAYFAk/UuNcACgkQ9CaO5/Lv0PD8jwCfY2KWiapFA2sdbPyqNrAZnYXG
pesAnRgk1bEpAUv8VXupYiInn29xTjat
=Owuw
-----END PGP SIGNATURE-----

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


Mime
View raw message