Your message dated Thu, 25 Oct 2018 03:36:30 +0000
with message-id <e1gfwri-0004ex...@fasolo.debian.org>
and subject line Bug#911716: fixed in python-urllib3 1.24-1
has caused the Debian Bug report #911716,
regarding python-urllib3 FTBFS: ssl tests fail
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)
--
911716: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=911716
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Source: python-urllib3
Version: 1.22-1
Severity: serious
Tags: ftbfs
python-urllib3 fails to build from source in unstable. Building the
experimental version succeeds. A build ends with:
https://tests.reproducible-builds.org/debian/rbuild/unstable/amd64/python-urllib3_1.22-1.rbuild.log.gz
| =================================== FAILURES
===================================
| _________________ TestConnection.test_match_hostname_mismatch
__________________
|
| self = <test.test_connection.TestConnection object at 0x7fc52d560780>
|
| def test_match_hostname_mismatch(self):
| cert = {'subjectAltName': [('DNS', 'foo')]}
| asserted_hostname = 'bar'
| try:
| with mock.patch('urllib3.connection.log.error') as mock_log:
| > _match_hostname(cert, asserted_hostname)
|
| test/test_connection.py:39:
| _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_
|
| cert = {'subjectAltName': [('DNS', 'foo')]}, asserted_hostname = 'bar'
|
| def _match_hostname(cert, asserted_hostname):
| try:
| > match_hostname(cert, asserted_hostname)
|
| urllib3/connection.py:356:
| _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_
|
| cert = {'subjectAltName': [('DNS', 'foo')]}, hostname = 'bar'
|
| def match_hostname(cert, hostname):
| """Verify that *cert* (in decoded format as returned by
| SSLSocket.getpeercert()) matches the *hostname*. RFC 2818 and RFC
6125
| rules are followed.
|
| The function matches IP addresses rather than dNSNames if hostname is
a
| valid ipaddress string. IPv4 addresses are supported on all platforms.
| IPv6 addresses are supported on platforms with IPv6 support (AF_INET6
| and inet_pton).
|
| CertificateError is raised on failure. On success, the function
| returns nothing.
| """
| if not cert:
| raise ValueError("empty or no certificate, match_hostname needs a
"
| "SSL socket or SSL context with either "
| "CERT_OPTIONAL or CERT_REQUIRED")
| try:
| host_ip = _inet_paton(hostname)
| except ValueError:
| # Not an IP address (common case)
| host_ip = None
| dnsnames = []
| san = cert.get('subjectAltName', ())
| for key, value in san:
| if key == 'DNS':
| if host_ip is None and _dnsname_match(value, hostname):
| return
| dnsnames.append(value)
| elif key == 'IP Address':
| if host_ip is not None and _ipaddress_match(value, host_ip):
| return
| dnsnames.append(value)
| if not dnsnames:
| # The subject is only checked when there is no dNSName entry
| # in subjectAltName
| for sub in cert.get('subject', ()):
| for key, value in sub:
| # XXX according to RFC 2818, the most specific Common Name
| # must be used.
| if key == 'commonName':
| if _dnsname_match(value, hostname):
| return
| dnsnames.append(value)
| if len(dnsnames) > 1:
| raise CertificateError("hostname %r "
| "doesn't match either of %s"
| % (hostname, ', '.join(map(repr, dnsnames))))
| elif len(dnsnames) == 1:
| raise CertificateError("hostname %r "
| "doesn't match %r"
| > % (hostname, dnsnames[0]))
| E ssl.SSLCertVerificationError: ("hostname 'bar' doesn't match
'foo'",)
|
| /usr/lib/python3.7/ssl.py:327: SSLCertVerificationError
|
| During handling of the above exception, another exception occurred:
|
| self = <test.test_connection.TestConnection object at 0x7fc52d560780>
|
| def test_match_hostname_mismatch(self):
| cert = {'subjectAltName': [('DNS', 'foo')]}
| asserted_hostname = 'bar'
| try:
| with mock.patch('urllib3.connection.log.error') as mock_log:
| _match_hostname(cert, asserted_hostname)
| except CertificateError as e:
| > assert str(e) == "hostname 'bar' doesn't match 'foo'"
| E assert '("hostname \...ch \'foo\'",)' == "hostname 'bar...t match
'foo'"
| E - ("hostname 'bar' doesn't match 'foo'",)
| E ? -- ---
| E + hostname 'bar' doesn't match 'foo'
|
| test/test_connection.py:41: AssertionError
| ======= 1 failed, 545 passed, 51 skipped, 1 deselected in 11.58 seconds
========
| /usr/lib/python3/dist-packages/_pytest/assertion/rewrite.py:6:
DeprecationWarning: the imp module is deprecated in favour of importlib; see
the module's documentation for alternative uses
| import imp
| /usr/lib/python3/dist-packages/pkg_resources/_vendor/pyparsing.py:943:
DeprecationWarning: Using or importing the ABCs from 'collections' instead of
from 'collections.abc' is deprecated, and in 3.8 it will stop working
| collections.MutableMapping.register(ParseResults)
| /usr/lib/python3/dist-packages/pkg_resources/_vendor/pyparsing.py:3245:
DeprecationWarning: Using or importing the ABCs from 'collections' instead of
from 'collections.abc' is deprecated, and in 3.8 it will stop working
| elif isinstance( exprs, collections.Iterable ):
| E: pybuild pybuild:338: test: plugin distutils failed with: exit code=1: cd
/build/1st/python-urllib3-1.22/.pybuild/cpython3_3.7_urllib3/build; python3.7
-m pytest --ignore=test/appengine --ignore=test/with_dummyserver
--ignore=test/test_connectionpool.py --ignore=test/contrib/test_socks.py
-k-test_recent_date
| dh_auto_test: pybuild --test -i python{version} -p "3.7 3.6" returned exit
code 13
| make: *** [debian/rules:16: build] Error 25
| dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
Helmut
--- End Message ---
--- Begin Message ---
Source: python-urllib3
Source-Version: 1.24-1
We believe that the bug you reported is fixed in the latest version of
python-urllib3, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 911...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Daniele Tricoli <er...@mornie.org> (supplier of updated python-urllib3 package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Thu, 25 Oct 2018 05:01:14 +0200
Source: python-urllib3
Binary: python-urllib3 python3-urllib3
Architecture: source all
Version: 1.24-1
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Modules Team
<python-modules-t...@lists.alioth.debian.org>
Changed-By: Daniele Tricoli <er...@mornie.org>
Description:
python-urllib3 - HTTP library with thread-safe connection pooling for Python
python3-urllib3 - HTTP library with thread-safe connection pooling for Python3
Closes: 911716
Changes:
python-urllib3 (1.24-1) unstable; urgency=medium
.
* Upload to unstable. (Closes: #911716)
Checksums-Sha1:
b8b66d065dbeb780f4f8acd30ad53c7df24c8bcb 2486 python-urllib3_1.24-1.dsc
46a9a815ec2584cdd8f0c0a45e043ac6e253425d 10796
python-urllib3_1.24-1.debian.tar.xz
eb42577fef97b865c47190c4b6da1a748c56b8af 96776 python-urllib3_1.24-1_all.deb
064663b3f3b9c316485f577fd681e89152262dd4 8061
python-urllib3_1.24-1_amd64.buildinfo
75941edfe630702bfe817c72245646cc305142ad 96844 python3-urllib3_1.24-1_all.deb
Checksums-Sha256:
d05c8235387125a471b55d4d3cb659fb4dc6e6a2a892eb22774a4dd142af081d 2486
python-urllib3_1.24-1.dsc
3133e0fe523adf6f5ec5bd560897bbccc35c787c0baee4ae6f04d275bfc9704c 10796
python-urllib3_1.24-1.debian.tar.xz
50039f4ad48315be0989442e3608e428f0c61adcc9730656c81fe9024b619809 96776
python-urllib3_1.24-1_all.deb
edd7e2a1c4df70193d74d69a526a89b7f4e05be32a02022b41538c8ec24c75e0 8061
python-urllib3_1.24-1_amd64.buildinfo
06f2717bf7ced50620fca16b80b832e0d3e412c0d7bbf01873e5a346f35a5b1a 96844
python3-urllib3_1.24-1_all.deb
Files:
c009c7972e43145b1668bbbb6ad0e24c 2486 python optional python-urllib3_1.24-1.dsc
a4ff7f17f10410c5a093662514750108 10796 python optional
python-urllib3_1.24-1.debian.tar.xz
c42bc9bee124e45e7ec9ffce02de559e 96776 python optional
python-urllib3_1.24-1_all.deb
f92e3f30468ca682ada238124ceab8f7 8061 python optional
python-urllib3_1.24-1_amd64.buildinfo
19feb8d68bc61c5b02b63ed9b07ec8b5 96844 python optional
python3-urllib3_1.24-1_all.deb
-----BEGIN PGP SIGNATURE-----
iQJFBAEBCgAvFiEExlrvn+W/jMvW7bAZi69SLA1szt0FAlvRNEURHGVyaW9sQG1v
cm5pZS5vcmcACgkQi69SLA1szt3SyxAAgMsj2LFJpBmJJmQxgZyFI88IBg7Y5scZ
jODvnzWwIkY9Ce23gkLGxeT1K75K6wEtdMZUXL+emY33lWtRlw4Ebi0k8Lm5qZct
o4YAner362i8xnEwocLMvubdDrXCujHtQXUmiGJzZIvLC4Ce/j8E50/IM3nM3dc5
kadXd4lVPlOHcgnkoQdJ77QMM7sg6gVvvi08kDJRbIIYwP0aRsYerZdiuw9sRxSB
ga4x5yczjfcNac5ZJ1AnH3ulS6YCpBy3pjOsOoE0THD4YcFLMmv/pMB1XY/lPNLt
DmsZcl03iDnTVBr2JOqFAv8otgseNg0LbvnWiiX2f36PW8oevXfdcQT1WwwCALbm
S2xxW8+aCI80SjBzF39TplRZWs0IcJRurUS9dfVOX71xPvm1+uo6DugqZl+tXSyN
KJgKN8+7JUL35QaxfOZ3LJ5neGpNpnhCYPDa0bNQZQJELO4HR5L8aItaKAeLV84d
4W2jtpayir9APWvYQegwd3Y98MQhBIz000ribTcHK2uFNFkLoevi74xBBGOTNLE0
Lol4CJ7K+9G7e9yoHnpMsikjfaQWJPVBeaxxbuaiZs0MiEuHPcztLR8rGJd659l0
xQTx+Vlg/eT/RaiHrjXcl2C1a+3aOaQKy1vidS4kp0AEL77Z4tvmC9clWEXdOXcy
bm/4wvuh6y0=
=aF2P
-----END PGP SIGNATURE-----
--- End Message ---