Bug 50606 - Error running CGI executable in Tomcat 6.0.30
Error running CGI executable in Tomcat 6.0.30
Product: Tomcat 6
Classification: Unclassified
Component: Catalina
PC Windows XP
: P2 normal (vote)
: default
Assigned To: Tomcat Developers Mailing List
Depends on:
  Show dependency tree
Reported: 2011-01-18 02:26 UTC by basil
Modified: 2011-01-20 16:44 UTC (History)
0 users

localhost.2011-01-18.log (6.84 KB, text/plain)
2011-01-18 02:26 UTC, basil

Note You need to log in before you can comment on or make changes to this bug.
Description basil 2011-01-18 02:26:41 UTC
Created attachment 26502 [details]

I have web application hosting CGI executable with the following settings for CGI

This was Ok in Tomcat 6.0.29 but not in 6.0.30, see attachment.
Comment 1 Konstantin Kolinko 2011-01-18 04:52:18 UTC
You have

i.e. you are setting executable="". The logs say that the attempt to execute "" failed.

The change between 6.0.29 and 6.0.30 in CGIServlet is 

In 6.0.29 the command to be executed was built as a single string, concatenating the components. In 6.0.30 all the components are passes in as an array.

Are you sure that the empty string is a valid value for the "executable"? I do not think that that is a valid value. Thus I am closing this issue as INVALID.

If you need further assistance, please ask on the users@ list.
Comment 2 Konstantin Kolinko 2011-01-20 12:48:02 UTC
Discussed on dev@
Fixed in trunk in r1061412 and will be in 7.0.7.
Proposed for 6.0.x
Comment 3 Mark Thomas 2011-01-20 16:44:44 UTC
Fixed in 6.0.x and will be included in 6.0.31 onwards.