[spambayes-bugs] [ spambayes-Bugs-990685 ] Change in cgi.parse_qs
breaks sb_server in Python 2.4
SourceForge.net
noreply at sourceforge.net
Mon Jul 19 04:15:33 CEST 2004
Bugs item #990685, was opened at 2004-07-14 18:08
Message generated for change (Comment added) made by anadelonbrin
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=498103&aid=990685&group_id=61702
Category: pop3proxy
Group: Source code - CVS
Status: Open
Resolution: None
Priority: 5
Submitted By: Tony Meyer (anadelonbrin)
Assigned to: Richie Hindle (richiehindle)
Summary: Change in cgi.parse_qs breaks sb_server in Python 2.4
Initial Comment:
cgi.parse_qs has changed behaviour between 2.3.4 and 2.4a1.
Python 2.3.4 (#53, May 25 2004, 21:17:02) [MSC v.1200
32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for
more information.
>>> import cgi
>>> cgi.parse_qs("")
{}
>>> cgi.parse_qs("", 1)
{}
Python 2.4a1 (#54, Jul 8 2004, 11:30:13) [MSC v.1310
32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for
more information.
>>> import cgi
>>> cgi.parse_qs("")
{}
>>> cgi.parse_qs("", 1)
{'': ['']}
This breaks the sb_server web interface, because we get
a {'': ['']} dict passed as kwparams to the onX
functions, and they aren't expecting that.
Adding "if query == '': cgiParams = {} else" to
Dibbler.py at line 391 fixes this, but I'd like to
check with you that that's a valid fix before checking
it in. (You use Dibbler elsewhere, right?)
----------------------------------------------------------------------
>Comment By: Tony Meyer (anadelonbrin)
Date: 2004-07-19 14:15
Message:
Logged In: YES
user_id=552329
FWIW, after applying the cgi.py patch sb_server seems to
work with Python 2.4a1.
----------------------------------------------------------------------
Comment By: Richie Hindle (richiehindle)
Date: 2004-07-18 11:08
Message:
Logged In: YES
user_id=85414
I believe this is a bug in Python 2.4, and I've submitted a
patch to fix it, number 993062.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=498103&aid=990685&group_id=61702
More information about the Spambayes-bugs
mailing list