You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by BugRat Mail System <to...@cortexity.com> on 2000/09/14 02:08:50 UTC

BugRat Report #112 has been filed.

Bug report #112 has just been filed.

You can view the report at the following URL:

   <http://znutar.cortexity.com:8888/BugRatViewer/ShowReport/112>

REPORT #112 Details.

Project: Tomcat
Category: Bug Report
SubCategory: New Bug Report
Class: swbug
State: received
Priority: low
Severity: non-critical
Confidence: public
Environment: 
   Release: 3.1
   JVM Release: ?
   Operating System: NT
   OS Release: 4.0
   Platform: Windows

Synopsis: 
HTTPServletRequest.getQueryString() erroneously returns null

Description:
In org.apache.tomcat.core.RequestDispatcherImpl, in setPath(String), this.path is set to everything up to the "?", while this.queryString is set to everything after the "?". Then, in include(ServletRequest, ServletResponse), the line
Request subRequest=context.getContextManager().createRequest( context, path );
passes only the path part (without the queryString) to org.apache.tomcat.core.ContextManager's createRequest(String) function, which again tries to strip off the before "?" and after "?" parts. Since the queryString has already been stripped off and is not passed to the createRequest function , the ContextManager's queryString variable is set to null, and if a call to HTTPServletRequest.getQueryString() (or any other function that uses the queryString) is made, it incorrectly returns null.