You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2002/01/09 10:36:54 UTC

DO NOT REPLY [Bug 5759] New: - CGI servlet mapping by extension *.cgi does not work

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

CGI servlet mapping by extension *.cgi does not work

           Summary: CGI servlet mapping by extension *.cgi does not work
           Product: Tomcat 4
           Version: 4.0.1 Final
          Platform: PC
        OS/Version: FreeBSD
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Catalina
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: Georg.Koltermann@mscsoftware.com


I have in my web.xml:

    <servlet-mapping>
        <servlet-name>cgi</servlet-name>
        <url-pattern>*.cgi</url-pattern>
    </servlet-mapping>

Now, when I request a CGI URL of, e.g.,
http://hunter.muc.macsch.com:8080/NVH/FileSelection/fast.cgi?path=/home/hunter
the servlet is not found.

The server log contains:

2002-01-09 10:30:17 cgi: findCGI: path=,
/opt/jakarta-tomcat-4.0.1/webapps/NVH/WEB-INF/cgi
2002-01-09 10:30:17 cgi: findCGI:
currentLoc=/opt/jakarta-tomcat-4.0.1/webapps/NVH/WEB-INF/cgi

and the error reply sent to the browser has, among other things:

method = GET 
     pathInfo = null 
     pathTranslated = null 
     queryString = path=/home/hunter 
     remoteUser = null 
     requestedSessionId = null 
     requestedSessionIdFromCookie = false 
     requestedSessionIdFromURL = false 
     requestedSessionIdValid = false 
     requestURI = /NVH/FileSelection/fast.cgi 
     servletPath = /FileSelection/fast.cgi 
     userPrincipal = null 

So it seems to me that the CGI servlet does not the the right
path when using extension mapping.

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