Why is the CGIServlet::findCGI method inserting the
"/./" in the middle of the command?
command=C:\jakarta-tomcat-4.1.12-LE-jdk14\.\webapps\demo\WEB-INF\cgi\code2html.pl
This is incompatible with the code at the top of the
CGIServlet::run method that enforces the rule
paraphrased below:
RULE: the characters "/./" and "/../" can only occur
at position 1 of the command string.
the illegal character exception below is what I get in
my CGI ( due to the RULE above is broken):
Not running CGI
[C:\jakarta-tomcat-4.1.12-LE-jdk14\.\webapps\demo\WEB-INF\cgi\code2html.pl].
DETAILS:
WinNT 4.0 , Tomcat 4.1.12
Log entries from CGI DEBUGGING:
2002-10-31 09:02:22 cgi: findCGI: path=/code2html,
C:\jakarta-tomcat-4.1.12-LE-jdk14\.\webapps\demo\WEB-INF/cgi
2002-10-31 09:02:22 cgi: findCGI:
currentLoc=C:\jakarta-tomcat-4.1.12-LE-jdk14\.\webapps\demo\WEB-INF\cgi
2002-10-31 09:02:22 cgi: findCGI:
currentLoc=C:\jakarta-tomcat-4.1.12-LE-jdk14\.\webapps\demo\WEB-INF\cgi
2002-10-31 09:02:22 cgi: findCGI: FOUND cgi at
C:\jakarta-tomcat-4.1.12-LE-jdk14\.\webapps\demo\WEB-INF\cgi\code2html
2002-10-31 09:02:22 cgi: findCGI calc: name=code2html,
path=C:\jakarta-tomcat-4.1.12-LE-jdk14\.\webapps\demo\WEB-INF\cgi\code2html,
scriptname=/demo/cgi-bin\code2html, cginame=\code2html
X_TOMCAT_SCRIPT_PATH=C:\jakarta-tomcat-4.1.12-LE-jdk14\.\webapps\demo\WEB-INF\cgi\code2html
SCRIPT_NAME=/demo/cgi-bin\code2html,
command=C:\jakarta-tomcat-4.1.12-LE-jdk14\.\webapps\demo\WEB-INF\cgi\code2html)
STACKTRACE:
java.io.IOException:
org.apache.catalina.servlets.CGIServlet$CGIRunnerIllegal
Character in CGI command path ('.' or '..') detected.
Not running CGI
[C:\jakarta-tomcat-4.1.12-LE-jdk14\.\webapps\demo\WEB-INF\cgi\code2html.pl].
at
org.apache.catalina.servlets.CGIServlet$CGIRunner.run(CGIServlet.java:1533)
at
org.apache.catalina.servlets.CGIServlet.doGet(CGIServlet.java:635)
at org.apache.catalina.servlets.CGIServlet.doPost(CGIServlet.java:597)
__________________________________________________
Do you Yahoo!?
HotJobs - Search new jobs daily now
http://hotjobs.yahoo.com/
--
To unsubscribe, e-mail: <mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>