DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=40817>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=40817 ------- Additional Comments From [EMAIL PROTECTED] 2006-10-26 12:59 ------- This is likely a configuration issue. Make sure that you aren't defining the CGIServlet init-param cgiPathPrefix as '/' in your CGI servlet definition. Remove the cgiPathPrefix init-param and it should work as expected. Setting cgiPathPrefix to '/' was the only way that I could repro this issue. By having that set you are unneccessarily adding an extra '/' to the path: INFO http-8080-Processor25 org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/cgi-test] - cgi: findCGI: path=/test.pl, /home/chris/apache-tomcat-5.5.20/webapps/cgi-test// The CGIServlet is already set up to trim any trailing file seperator from the webAppRootDir, but it only trims one: if ((webAppRootDir != null) && (webAppRootDir.lastIndexOf(File.separator) == (webAppRootDir.length() - 1))) { //strip the trailing "/" from the webAppRootDir webAppRootDir = webAppRootDir.substring(0, (webAppRootDir.length() - 1)); } A possibly more appropriate patch would trim an arbitrary number of file seperators from webAppRootDir, though right now I can't think of another case where that would be needed. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]