[Patches] [ python-Patches-848870 ] Flakey urllib2.parse_http_list

SourceForge.net noreply at sourceforge.net
Tue Nov 25 06:53:45 EST 2003


Patches item #848870, was opened at 2003-11-25 22:36
Message generated for change (Comment added) made by zenzen
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=848870&group_id=5470

Category: Library (Lib)
Group: Python 2.3
Status: Open
Resolution: None
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: Stuart Bishop (zenzen)
Date: 2003-11-25 22: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