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 2004/02/19 20:29:11 UTC

DO NOT REPLY [Bug 27088] New: - CGI always call perl before execution

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

CGI always call perl before execution

           Summary: CGI always call perl before execution
           Product: Tomcat 5
           Version: 5.0.18
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Servlets:CGI
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: kws@qad.com
                CC: kws@qad.com


The cgiExecutable variable defaults to "perl" and is only overwritten if 
the "executable" config parameter is set. It should default to null and only 
add it to the CGI executable command if it is non-null. This can break any 
system that does not have perl installed and in the PATH. It also adds and 
additional process that must be started before executing the cgi script.

Code: CGIServlet.java

Fix:

cgiExecutable = null;

       if (cgiExecutable != null) {
        	   cmdAndArgs.insert(0,cgiExecutable + " ");
        }

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org