[spambayes-bugs] [ spambayes-Bugs-990685 ] Change in cgi.parse_qs breaks sb_server in Python 2.4

SourceForge.net noreply at sourceforge.net
Wed Jul 14 08:08:07 CEST 2004


Bugs item #990685, was opened at 2004-07-14 18:08
Message generated for change (Tracker Item Submitted) made by Item Submitter
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?)

----------------------------------------------------------------------

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