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.

classification
Title: urllib2 basic auth parser handle unquoted realm in WWW-Authenticate header
Type: behavior Stage: resolved
Components: Library (Lib) Versions:
process
Status: closed Resolution: duplicate
Dependencies: Superseder:
Assigned To: orsenthil Nosy List: almost, mmb, orsenthil
Priority: normal Keywords: patch

Created on 2011-02-08 20:41 by mmb, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
urllib2_unquoted_realm.diff mmb, 2011-02-08 20:41 patch to parse unquoted realm in auth header
Messages (3)
msg128190 - (view) Author: Matthew M. Boedicker (mmb) Date: 2011-02-08 20:41
I am working with a web server that does not quote the realm in the WWW-Authenticate header.

This patch will make the realm parsing handle unquoted realm as well as some other invalid variations.

I tried doing it by modifying the regex only but could not get it to handle all cases.
msg165131 - (view) Author: Thomas Parslow (almost) * Date: 2012-07-09 22:28
This is already fixed in the current code, unquoted realms are allowed with a warning.
msg165134 - (view) Author: Senthil Kumaran (orsenthil) * (Python committer) Date: 2012-07-09 22:56
Yes, this is fixed as part of issue12541
History
Date User Action Args
2022-04-11 14:57:12adminsetgithub: 55362
2012-07-09 22:56:53orsenthilsetstatus: open -> closed
resolution: duplicate
messages: + msg165134

stage: resolved
2012-07-09 22:28:59almostsetnosy: + almost
messages: + msg165131
2011-02-09 09:11:33orsenthilsetassignee: orsenthil

nosy: + orsenthil
2011-02-08 20:42:45mmbsettype: behavior
2011-02-08 20:41:19mmbcreate