www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Kelly <John.Ke...@bellhow.com>
Subject mod_jserv/3417: JServContext method getRealPath is useless and not consistent with JServConnection
Date Wed, 18 Nov 1998 15:22:12 GMT

>Number:         3417
>Category:       mod_jserv
>Synopsis:       JServContext method getRealPath is useless and not consistent with JServConnection
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    jserv
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Wed Nov 18 07:30:00 PST 1998
>Last-Modified:
>Originator:     John.Kelly@bellhow.com
>Organization:
apache
>Release:        Apache-JServ-19981116
>Environment:
Windows NT 4.0 Service Pack 3
Apache 1.3.3
Apache-JServ-19981116
>Description:
JServContext method getRealPath unconditionally returns null which makes it 
impossible to get the document root in the init routine.  In addition, the
behavior of JServContext's getRealPath is not consistent with JServConnection's
getRealPath.  At least JServConnection's getRealPath provides useful information.

I realize both versions of getRealPath have "FIXME" in them, however, the location
of the document root is very important to a servlet no matter how you get the
information.  (JServConnection uses Apache environment variable Document root).
>How-To-Repeat:
Yes,  call getRealPath from init using getServletContext and from a request.
>Fix:
Implement getRealPath in a single class that for now uses the apache environment
variable and later will use the appropriate ISAPI or NMAPI interfaces.
>Audit-Trail:
>Unformatted:
[In order for any reply to be added to the PR database, ]
[you need to include <apbugs@Apache.Org> in the Cc line ]
[and leave the subject line UNCHANGED.  This is not done]
[automatically because of the potential for mail loops. ]
[If you do not include this Cc, your reply may be ig-   ]
[nored unless you are responding to an explicit request ]
[from a developer.                                      ]
[Reply only with text; DO NOT SEND ATTACHMENTS!         ]




Mime
View raw message