This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
Created on 2007年08月24日 20:54 by dljessup, last changed 2022年04月11日 14:56 by admin. This issue is now closed.
| Messages (6) | |||
|---|---|---|---|
| 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) * (Python committer) | 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) * (Python committer) | 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) * (Python committer) | 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. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:56:26 | admin | set | github: 45355 |
| 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 | |