You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by bu...@apache.org on 2002/02/07 11:13:21 UTC

DO NOT REPLY [Bug 6303] New: - Locator Service bug

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=6303>.
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=6303

Locator Service bug

           Summary: Locator Service bug
           Product: Jetspeed
           Version: 1.3a2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Miscellaneous
        AssignedTo: jetspeed-dev@jakarta.apache.org
        ReportedBy: lars@conscius.com


Some servlet-container vendors interpret the
servlet specifications regarding getRealPath
as to return NULL when the path specified cannot
be resolved (non existing). Tomcat seems only
to return NULL if the archive is deployed as WAR
(not exploded) but since tomcat usually explodes
a war during deployment it may never return NULL in getRealPath.
Since the Jetspeed Locator Service uses this getRealPath to locate
a resource recursively, you might get a NullPointerException in the
module JetspeedTemplateLocatorService.java when 
realPath = TurbineServlet.getRealPath( basePath + workingPath );
returns NULL.

Fix: Change the templateExists to see if parameter is NULL.

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>