tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From BugRat Mail System <tomcat-b...@cortexity.com>
Subject BugRat Report #112 has been filed.
Date Thu, 14 Sep 2000 00:08:50 GMT
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.

Mime
View raw message