Hi,
I see the following warning with following request "http://localhost:
8080/snoopy/snoopy.jsp?hello=xxx&&world=yyy"
Tomct 5.5.26
==
29.02.2008 13:49:29 org.apache.tomcat.util.http.Parameters
processParameters
WARNUNG: Parameters: Invalid chunk ignored.
===
Both parameter hello and world has the correct values, but every
request logs a warning. At high
traffic sites this anno user fault made admins really unhappy.
At RFC 1738 only the following BNF are reference:
http://tools.ietf.org/html/rfc1738
---
; HTTP
httpurl = "http://" hostport [ "/" hpath [ "?" search ]]
hpath = hsegment *[ "/" hsegment ]
hsegment = *[ uchar | ";" | ":" | "@" | "&" | "=" ]
search = *[ uchar | ";" | ":" | "@" | "&" | "=" ]
search = *[ uchar | ";" | ":" | "@" | "&" | "=" ]
-----
The Wikipedia link ( http://en.wikipedia.org/wiki/Query_string)
is better, but not usefull as implementation reference note.
Why we report a warning ?
s. Parameters LL. 347
public void processParameters( byte bytes[], int start, int len,
String enc ) {
...
Ll 384
if( nameEnd<=nameStart ) {
log.warn("Parameters: Invalid chunk ignored.");
continue;
// invalid chunk - it's better to ignore
}
Regards
Peter