Bug 49657 - In CGI Mode, "executable" full path with spaces does not work
Summary: In CGI Mode, "executable" full path with spaces does not work
Alias: None
Product: Tomcat 6
Classification: Unclassified
Component: Catalina (show other bugs)
Version: 6.0.29
Hardware: PC Windows Server 2003
: P2 normal (vote)
Target Milestone: default
Assignee: Tomcat Developers Mailing List
Depends on:
Reported: 2010-07-28 03:45 UTC by de Ratuld
Modified: 2010-10-04 17:01 UTC (History)
0 users


Note You need to log in before you can comment on or make changes to this bug.
Description de Ratuld 2010-07-28 03:45:08 UTC
In CGI mode, if you specify a full path for a command, containing blank, 
it does not work

example :
is OK but

            <param-value>c:\Program Files\mycommand</param-value>
does not work well with error like

7 juil. 2010 15:51:52 org.apache.catalina.core.ApplicationContext log
INFO: cgi: runCGI (stderr):'C:\Program' is not recognized as an internal or external command,

Need probably to add " in for cgiExcecutable in CGIServlet.java,  like it is done
for CmdAndArgs
Comment 1 Mark Thomas 2010-09-28 10:47:02 UTC
Fixed in trunk and will be included in 7.0.3 onwards.

It has also been proposed for backport to 6.0.x
Comment 2 Mark Thomas 2010-10-04 17:01:39 UTC
This has been fixed in 6.0.x and will be included in 6.0.30 onwards.