axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 10512] - different servlet-engines and servletContext-method getRealPath()
Date Thu, 25 Jul 2002 15:31:09 GMT
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=10512>.
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=10512

different servlet-engines and servletContext-method getRealPath()





------- Additional Comments From mattm@mitre.org  2002-07-25 15:31 -------
It seems the reason for retrieving the 'realpath' is to examine the extension of
the request. The current method for determining the request's extension fails
using iPlanet application server 6.0 (not sure about other versions or servlet
containers). I propose an extened method for examining the servlet's extension:

Add the following lines:
line: 279            if (realpath == null) {
line: 280                realpath = req.getServletPath();
line: 281            }


I have tested this using iPlanet application server 6.0 and Tomcat 4.01 and the
doGet method no longer throws a null pointer exception.

-matt

Mime
View raw message