This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Title: CGIHTTPServer: directories/scripts with spaces in their name
Type: Stage:
Components: Library (Lib) Versions:
Status: closed Resolution: duplicate
Dependencies: Superseder:
Assigned To: Nosy List: georg.brandl, ivorocha, sweetleon
Priority: normal Keywords:

Created on 2004-12-19 19:31 by sweetleon, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (3)
msg23775 - (view) Author: LT (sweetleon) Date: 2004-12-19 19:31
It looks like we're not properly quoting the path the
script, and when the script or its directory has a
space in its name - quite common on Windoze - it
doesn't work. Here's the output:

host - - [19/Dec/2004 11:07:01] command:
C:\Python24\python.exe -u c:\Documents a
nd Settings\User\My Documents\project\cgi-bin\ ""
host - - [19/Dec/2004 11:07:01] C:\Python24\python.exe:
can't open file 'c:\Docum
ents': [Errno 2] No such file or directory

ibm - - [19/Dec/2004 11:07:02] CGI script exit status 0x2
ibm - - [19/Dec/2004 11:07:02] code 404, message File
not found
msg23776 - (view) Author: silicio (ivorocha) Date: 2005-01-21 19:14
Logged In: YES 

It's the same problem found in (Request ID 696846).
msg23777 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2005-06-26 22:35
Logged In: YES 

According to bug #696846, this is closed in CVS. Closing as
Date User Action Args
2022-04-11 14:56:08adminsetgithub: 41344
2004-12-19 19:31:18sweetleoncreate