touch-packages team mailing list archive
-
touch-packages team
-
Mailing list archive
-
Message #107224
[Bug 1500768] [NEW] python3.4.3 SRU break requests
Public bug reported:
Sicne the upgade to python 3.4.3 on trusty, I'm getting this error when using a squid proxy:
https://jenkins.qa.ubuntu.com/view/All/job/udtc-trusty-tests/1946/label=ps-trusty-desktop-amd64-1,type=large/testReport/tests.large.test_android/AndroidSDKTests/test_default_android_sdk_install/
The code is using python-requests, with verify=True for ssl connection
(default). Some tests are testing that invalid certificates are
rejected: https://github.com/ubuntu/ubuntu-
make/blob/master/umake/network/download_center.py#L129
Rerunning the same code with previous trusty package (3.4.0~trusty1)
doesn't show up this issue. It seems that SNI is broken for the trusty
version of python3-requests with 3.4.3. (See the FAQ http://www.python-
requests.org/en/latest/community/faq/ with "What are “hostname doesn’t
match” errors?" and the stackoverflow question.
I did run a test, grabbing requests 2.7 and backporting it to trusty (I
needed to as well to take python3-urllib3 willy version).
So, 3.4.3 has an incompatible change for existing projects and people
with proxys are starting to see some breakage like in
https://bugs.launchpad.net/ubuntu/+source/ubuntu-make/+bug/1499890.
Can we get it fix somehow, reverting the incompatible change breaking
SNI (I wonder if this is "Changed in version 3.4.3: This class now
performs all the necessary certificate and hostname checks by default.
To revert to the previous, unverified, behavior
ssl._create_unverified_context() can be passed to the context
parameter." in https://docs.python.org/3/library/http.client.html or
something else) so that existing code can either get a new compatible
python-requests or avoid incompatible changes in python 3.4.3?
** Affects: python3.4 (Ubuntu)
Importance: Undecided
Status: Confirmed
--
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to python3.4 in Ubuntu.
https://bugs.launchpad.net/bugs/1500768
Title:
python3.4.3 SRU break requests
Status in python3.4 package in Ubuntu:
Confirmed
Bug description:
Sicne the upgade to python 3.4.3 on trusty, I'm getting this error when using a squid proxy:
https://jenkins.qa.ubuntu.com/view/All/job/udtc-trusty-tests/1946/label=ps-trusty-desktop-amd64-1,type=large/testReport/tests.large.test_android/AndroidSDKTests/test_default_android_sdk_install/
The code is using python-requests, with verify=True for ssl connection
(default). Some tests are testing that invalid certificates are
rejected: https://github.com/ubuntu/ubuntu-
make/blob/master/umake/network/download_center.py#L129
Rerunning the same code with previous trusty package (3.4.0~trusty1)
doesn't show up this issue. It seems that SNI is broken for the trusty
version of python3-requests with 3.4.3. (See the FAQ http://www
.python-requests.org/en/latest/community/faq/ with "What are “hostname
doesn’t match” errors?" and the stackoverflow question.
I did run a test, grabbing requests 2.7 and backporting it to trusty
(I needed to as well to take python3-urllib3 willy version).
So, 3.4.3 has an incompatible change for existing projects and people
with proxys are starting to see some breakage like in
https://bugs.launchpad.net/ubuntu/+source/ubuntu-make/+bug/1499890.
Can we get it fix somehow, reverting the incompatible change breaking
SNI (I wonder if this is "Changed in version 3.4.3: This class now
performs all the necessary certificate and hostname checks by default.
To revert to the previous, unverified, behavior
ssl._create_unverified_context() can be passed to the context
parameter." in https://docs.python.org/3/library/http.client.html or
something else) so that existing code can either get a new compatible
python-requests or avoid incompatible changes in python 3.4.3?
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python3.4/+bug/1500768/+subscriptions
Follow ups
-
[Bug 1500768] Re: python3.4.3 SRU break requests
From: Matthias Klose, 2015-10-12
-
[Bug 1500768] Re: python3.4.3 SRU break requests
From: Cory Benfield, 2015-10-12
-
[Bug 1500768] Re: python3.4.3 SRU break requests
From: Ben Howard, 2015-10-12
-
[Bug 1500768] Re: python3.4.3 SRU break requests
From: Steve Langasek, 2015-10-09
-
[Bug 1500768] Re: python3.4.3 SRU break requests
From: Ang Bongsong, 2015-10-08
-
[Bug 1500768] Re: python3.4.3 SRU break requests
From: Sebastian Unger, 2015-10-08
-
[Bug 1500768] Re: python3.4.3 SRU break requests
From: Sebastian Unger, 2015-10-08
-
[Bug 1500768] Re: python3.4.3 SRU break requests
From: Bill Miller, 2015-10-08
-
[Bug 1500768] Re: python3.4.3 SRU break requests
From: Chris Barnes, 2015-10-08
-
[Bug 1500768] Re: python3.4.3 SRU break requests
From: Chris Barnes, 2015-10-08
-
[Bug 1500768] Re: python3.4.3 SRU break requests
From: Bill Miller, 2015-10-08
-
[Bug 1500768] Re: python3.4.3 SRU break requests
From: graingert, 2015-10-07
-
[Bug 1500768] Re: python3.4.3 SRU break requests
From: graingert, 2015-10-07
-
[Bug 1500768] Re: python3.4.3 SRU break requests
From: Oli, 2015-10-07
-
[Bug 1500768] Re: python3.4.3 SRU break requests
From: Oli, 2015-10-07
-
[Bug 1500768] Re: python3.4.3 SRU break requests
From: Didier Roche, 2015-10-07
-
[Bug 1500768] Re: python3.4.3 SRU break requests
From: Lenin, 2015-10-07
-
[Bug 1500768] Re: python3.4.3 SRU break requests
From: Axel Beckert, 2015-10-07
-
[Bug 1500768] Re: python3.4.3 SRU break requests
From: Didier Roche, 2015-10-07
-
[Bug 1500768] Re: python3.4.3 SRU break requests
From: Barry Warsaw, 2015-10-06
-
[Bug 1500768] Re: python3.4.3 SRU break requests
From: Barry Warsaw, 2015-10-06
-
[Bug 1500768] Re: python3.4.3 SRU break requests
From: Sebastien Bacher, 2015-10-06
-
[Bug 1500768] Re: python3.4.3 SRU break requests
From: Sebastien Bacher, 2015-10-06
-
[Bug 1500768] Re: python3.4.3 SRU break requests
From: Brian Murray, 2015-10-05
-
[Bug 1500768] Re: python3.4.3 SRU break requests
From: Didier Roche, 2015-10-05
-
[Bug 1500768] Re: python3.4.3 SRU break requests
From: Barry Warsaw, 2015-10-02
-
[Bug 1500768] Re: python3.4.3 SRU break requests
From: Didier Roche, 2015-09-30
-
[Bug 1500768] Re: python3.4.3 SRU break requests
From: Barry Warsaw, 2015-09-29
-
[Bug 1500768] Re: python3.4.3 SRU break requests
From: Barry Warsaw, 2015-09-29
-
[Bug 1500768] Re: python3.4.3 SRU break requests
From: Didier Roche, 2015-09-29
-
[Bug 1500768] Re: python3.4.3 SRU break requests
From: Launchpad Bug Tracker, 2015-09-29