You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2001/11/20 12:05:51 UTC
DO NOT REPLY [Bug 4966] New: -
request.getParameter(String) SOMETIMES fail to parse the querystring
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4966>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4966
request.getParameter(String) SOMETIMES fail to parse the querystring
Summary: request.getParameter(String) SOMETIMES fail to parse the
querystring
Product: Tomcat 4
Version: 4.0.1 Final
Platform: PC
OS/Version: Linux
Status: NEW
Severity: Normal
Priority: Other
Component: Catalina
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: andreas.bielk@codesense.com
Setup:
We have a servlet that is called (GET) by a shell-script every minute, always with the same URL. Every 25th reqeust or so, tomcat seems to fail parsing the querystring. The server is not under heavy load, the shell-script is the only client.
Code (servlet):
protected void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException
{
// get requests and features
String templateName = request.getParameter(URL_TEMPLATE);
String hintString = request.getParameter(URL_FORMAT);
// check template
if (templateName == null || templateName.equals(""))
{
// debug f�r felet p� prod6
SystemLog.debug("Template missing in request ["+request.getParameter(URL_TEMPLATE)+"] in ["+request.getQueryString()+"]");
error("Template missing in request",request,response);
return;
}
Output (SystemLog.debug is a simple System.out.println):
DEBUG msg:Template missing in request [null] in [t=billerud_day&f=pngm]
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>