A simple reproducer is:

$ sudo apt-get install squid3
$ export HTTP_PROXY=http://localhost:3128 HTTPS_PROXY=https://localhost:3128
$ python3 -c "import requests; requests.get('https://api.github.com/events')"

This is a tough one to assign blame to but I actually think that Python
3.4.3 *fixed* a problem in this space, but that urllib3 --not
requests!-- was buggy.  What isn't obvious from the above is that
upstream requests vendors urllib3, but in Ubuntu, we unbundle it.
Further, your PPA includes not just a new requests but also a new
urllib3.

>From what I've read in the requests tracker, SNI support is actually the
responsibility of urllib3.  I've looked through the changelogs of both
requests and urllib3 and haven't been able to match a bug fix with the
relevant upstream releases in Ubuntu.  Trusty has requests 2.2.1 and
urllib3 1.7.1.  But I still think ultimately it was a bug in urllib3
that got fixed in your PPA backport of 1.11 which fixes the above
reproducer.

So, I would propose that we backport both requests 2.7.0-3 and urllib3
1.11-1 (Wily versions both) to trusty-backports as a resolution of this
problem.  Would that work for you?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1500768

Title:
  python3.4.3 SRU break requests

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python3.4/+bug/1500768/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to