[Patches] [ python-Patches-1159139 ] cgi.py invalid REQUEST_METHOD
set
SourceForge.net
noreply at sourceforge.net
Tue Mar 8 17:05:19 CET 2005
Patches item #1159139, was opened at 2005-03-08 11:04
Message generated for change (Settings changed) made by joesalmeri
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1159139&group_id=5470
Category: Library (Lib)
Group: Python 2.4
Status: Open
Resolution: None
Priority: 5
Submitted By: Joe (joesalmeri)
>Assigned to: Guido van Rossum (gvanrossum)
Summary: cgi.py invalid REQUEST_METHOD set
Initial Comment:
Python Version 2.4
OS Windows XP SP 2 + WindowsUpdates
Patch for lastest CVS Tree
When the environment does not have a correctly set
REQUEST_METHOD cgi.py prompts
for key=value pairs by reading from sys.stdin. After the
values are read from sys.stdin they are never stored in
the FieldStorage.list attribute like they are
when the FieldStorage.read_urlencoded or
FieldStorage.read_multi methods are called.
This causes a problem when FieldStorage.keys() is
called because although the values were read from
sys.stdin they were never stored in FieldStorage.list.
Although you could argue that REQUEST_METHOD
should have been set correctly in the first place, it still
seems like if cgi.py is going to handle that situation by
actually reading the values from sys.stdin it should
store them too.
This fix stores the values read.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1159139&group_id=5470
More information about the Patches
mailing list