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 2003/11/06 20:45:23 UTC

DO NOT REPLY [Bug 24478] New: - Incorrect usage of perl

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

Incorrect usage of perl

           Summary: Incorrect usage of perl
           Product: Tomcat 4
           Version: 4.1.29
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Servlets:CGI
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: npapke@acm.org


CGIServlet always attempts to use "perl" to execute any CGI command (line 1585).
 This obviously causes problems for non-Perl CGI scripts.

Moreover, all parameters passed to the Perl interpreter enclosed in quotation
marks (lines 1566 and 1571).  This prevents the Perl interpreter from finding
the command.  [Sorry, no diffs, I am not setup to build Tomcat.]

To illustrate, here are a few lines from the debug log:

2003-11-06 18:29:17 cgi: findCGI: path=/printenv.cgi,
/usr/local/www/data/WEB-INF/cgi
2003-11-06 18:29:17 cgi: findCGI: currentLoc=/usr/local/www/data/WEB-INF/cgi
2003-11-06 18:29:17 cgi: findCGI: currentLoc=/usr/local/www/data/WEB-INF/cgi
2003-11-06 18:29:17 cgi: findCGI: FOUND cgi at
/usr/local/www/data/WEB-INF/cgi/printenv.cgi
2003-11-06 18:29:17 cgi: findCGI calc: name=printenv.cgi,
path=/usr/local/www/data/WEB-INF/cgi/printenv.cgi,
scriptname=/cgi-bin/printenv.cgi, cginame=/printenv.cgi
[clipped long environment dump]
2003-11-06 18:29:17 cgi: runCGI (stderr):Can't open perl script
""/usr/local/www/cgi-bin.default/printenv.cgi"": No such file or directory
2003-11-06 18:29:17 cgi: runCGI: 1 lines received on stderr

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