[Patches] [ python-Patches-848870 ] Flakey urllib2.parse_http_list
SourceForge.net
noreply at sourceforge.net
Wed Aug 24 22:53:56 CEST 2005
Patches item #848870, was opened at 2003-11-25 12:36
Message generated for change (Comment added) made by birkenfeld
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=848870&group_id=5470
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Library (Lib)
Group: Python 2.3
>Status: Closed
>Resolution: Rejected
Priority: 5
Submitted By: Stuart Bishop (zenzen)
Assigned to: Nobody/Anonymous (nobody)
Summary: Flakey urllib2.parse_http_list
Initial Comment:
Breaks with the following challenge:
realm="localhost",nonce="764d66b5e8c907eb5873d5d4c2131
1a1ad62535c",qop=auth,charset=utf-8,algorithm=md5-sess'''
'realm="localhost",nonce="764d66b5e8c907eb5873d5d4c213
11a1ad62535c",qop=auth,charset=utf-8,algorithm=md5-sess
Suggest changing the implementation to:
import csv
def parse_http_list(s):
"""Parse lists as described by RFC 2068 Section 2.
In particular, parse comman-separated lists where the
elements of
the list may include quoted-strings. A quoted-string could
contain a comma.
"""
return csv.reader([s]).next()
----------------------------------------------------------------------
>Comment By: Reinhold Birkenfeld (birkenfeld)
Date: 2005-08-24 22:53
Message:
Logged In: YES
user_id=1188172
I agree with jjlee. Depending on csv is unnecessary.
----------------------------------------------------------------------
Comment By: John J Lee (jjlee)
Date: 2005-05-19 23:07
Message:
Logged In: YES
user_id=261020
This should be closed. Patch 901480 is better.
(Stuart: I don't think it's wise to handle this
RFC-documented protocol using a module designed for reading
CSV files. Also, in future, please always use the file
upload feature of the tracker to upload any code or patch,
rather than pasting into the text area. Thanks for the report!)
----------------------------------------------------------------------
Comment By: Stuart Bishop (zenzen)
Date: 2003-11-25 12:53
Message:
Logged In: YES
user_id=46639
I appear to be cut & paste challenged. The challenge is:
realm="localhost",nonce="764d66b5e8c907eb5873d5d4c2131
1a1ad62535c",qop=auth,charset=utf-8,algorithm=md5-sess
Might not be worth fixing on the 2.3 branch, since this isn't actually
generated from a webserver (its from jabberd).
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=848870&group_id=5470
More information about the Patches
mailing list