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.

Author martin.panter
Recipients BreamoreBoy, alexwe, martin.panter, orsenthil, toobaz
Date 2015-06-21.07:40:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1434872424.08.0.509563591039.issue16095@psf.upfronthosting.co.za>
In-reply-to
Content
There are two problems with the test case, and one bug in Python:

1. HTTPPasswordMgr doesn’t handle realm=None; it has to be a string. You can use HTTPPasswordMgrWithDefaultRealm though.

2. The password managers won’t match a proxy with a non-standard port number against a hostname without a port. So you have to include the port in the add_password() call.

3. AbstractDigestAuthHandler.get_authorization() is using the wrong URL, as Alexander already discovered. I made proxy-digest.patch which should fix this.

The wrong URL (final URL rather than proxy) was actually tested for in test_urllib2_localnet.ProxyAuthTests. So I fixed those tests.
History
Date User Action Args
2015-06-21 07:40:24martin.pantersetrecipients: + martin.panter, orsenthil, BreamoreBoy, toobaz, alexwe
2015-06-21 07:40:24martin.pantersetmessageid: <1434872424.08.0.509563591039.issue16095@psf.upfronthosting.co.za>
2015-06-21 07:40:23martin.panterlinkissue16095 messages
2015-06-21 07:40:23martin.pantercreate