Issue1014
Created on 2007-08-24 20:54 by dljessup, last changed 2007-09-17 21:15 by gvanrossum.
|
msg55274 - (view) |
Author: David Jessup (dljessup) |
Date: 2007-08-24 20:54 |
|
In Python 2.4.4, cgi.parse_qs(qs='', strict_parsing=True) errors out:
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/usr/lib/python2.4/cgi.py", line 183, in parse_qs
for name, value in parse_qsl(qs, keep_blank_values, strict_parsing):
File "/usr/lib/python2.4/cgi.py", line 217, in parse_qsl
raise ValueError, "bad query field: %r" % (name_value,)
ValueError: bad query field: ''
To the best of my knowledge, this is bad behavior, since a large
percentage of URLs actually used have empty query strings.
|
|
msg55309 - (view) |
Author: Senthil Kumaran (orsenthil) |
Date: 2007-08-26 17:49 |
|
Can query strings be empty? I am unable to find an instance.
|
|
msg55727 - (view) |
Author: Nir Soffer (nirs) |
Date: 2007-09-07 02:11 |
|
Here is one: http://example.com/foo?
|
|
msg55728 - (view) |
Author: Nir Soffer (nirs) |
Date: 2007-09-07 02:14 |
|
Addionally, if the default value is empty string, you expect it work with
empty string. If a non empty value is needed, it would use None as the
default.
|
|
msg55977 - (view) |
Author: Senthil Kumaran (orsenthil) |
Date: 2007-09-17 20:32 |
|
Hi Sean,
This is a very minor issue (IMO) with Python 2.4. Why did you assign it
to gvanrossum?
Makes me wonder at your assignments.
Thanks,
Senthil
|
|
msg55983 - (view) |
Author: Guido van Rossum (gvanrossum) |
Date: 2007-09-17 21:15 |
|
I don't see what the problem is. You requested strict_parsing=True, and
this is what strict parsing does.
|
|
| Date |
User |
Action |
Args |
| 2007-09-17 21:15:48 | gvanrossum | set | status: open -> closed resolution: wont fix messages:
+ msg55983 |
| 2007-09-17 20:32:35 | orsenthil | set | messages:
+ msg55977 |
| 2007-09-17 08:38:08 | jafo | set | priority: normal assignee: gvanrossum nosy:
+ gvanrossum |
| 2007-09-07 02:14:24 | nirs | set | messages:
+ msg55728 |
| 2007-09-07 02:11:29 | nirs | set | nosy:
+ nirs messages:
+ msg55727 |
| 2007-08-26 17:49:52 | orsenthil | set | nosy:
+ orsenthil messages:
+ msg55309 |
| 2007-08-24 20:54:35 | dljessup | create | |
|