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: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]
                CC: [EMAIL PROTECTED]


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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to