[Python-bugs-list] [ python-Bugs-571167 ] glob() fails for network drive in cgi
noreply@sourceforge.net
noreply@sourceforge.net
Fri, 28 Jun 2002 11:28:01 -0700
Bugs item #571167, was opened at 2002-06-19 10:29
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=571167&group_id=5470
Category: Python Library
Group: Python 2.1.1
Status: Open
Resolution: None
Priority: 5
Submitted By: Brian Schuweiler (bshoe282)
Assigned to: Mark Hammond (mhammond)
Summary: glob() fails for network drive in cgi
Initial Comment:
glob.glob() does not work when globbing a network
mapped drive while running as a cgi script. The method
works fine when run as a normal python script (even for
mapped drives), but does not work when run from a
browser as a cgi script. The glob returns an empty list
as if the drive just isn't there.
----------------------------------------------------------------------
>Comment By: Brian Schuweiler (bshoe282)
Date: 2002-06-28 13:28
Message:
Logged In: YES
user_id=565626
Thanks for the response. My initial thoughts were that it is a
permissions problem. What made me believe otherwise and
log a bug was that no errors are thrown in the webserver and
the glob does return something, but it is an empty set. It
seems as though the glob works, but there are no matches
(even though there definitely are).
----------------------------------------------------------------------
Comment By: Mark Hammond (mhammond)
Date: 2002-06-27 20:19
Message:
Logged In: YES
user_id=14198
Assuming Windows.
This is almost certainly a permissions problem. The IIS
server does not run CGI as a "regular" user, but as the
"system user". The system user has no permissions to access
network resources, hence your problem.
Thus, this is not a Python problem. You need to check the
IIS docs to see how, or even if, you can loosen the
permissions (and assuming you understand the implications of
doing so).
Unless i hear back in a few days that there is another
problem I will close this as invalid.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=571167&group_id=5470