Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-urllib3 for openSUSE:Factory checked in at 2024-01-12 23:44:33 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-urllib3 (Old) and /work/SRC/openSUSE:Factory/.python-urllib3.new.21961 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-urllib3" Fri Jan 12 23:44:33 2024 rev:66 rq:1138118 version:2.1.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-urllib3/python-urllib3.changes 2023-12-05 17:03:05.612876295 +0100 +++ /work/SRC/openSUSE:Factory/.python-urllib3.new.21961/python-urllib3.changes 2024-01-12 23:44:52.525387093 +0100 @@ -1,0 +2,6 @@ +Thu Jan 11 11:46:04 UTC 2024 - Daniel Garcia <[email protected]> + +- Add upstream patch openssl-3.2.patch, to fix tests with opennssl + 3.2.0, gh#urllib3/urllib3#3271 + +------------------------------------------------------------------- New: ---- openssl-3.2.patch BETA DEBUG BEGIN: New: - Add upstream patch openssl-3.2.patch, to fix tests with opennssl 3.2.0, gh#urllib3/urllib3#3271 BETA DEBUG END: ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-urllib3.spec ++++++ --- /var/tmp/diff_new_pack.bOcYm3/_old 2024-01-12 23:44:53.125409054 +0100 +++ /var/tmp/diff_new_pack.bOcYm3/_new 2024-01-12 23:44:53.125409054 +0100 @@ -1,7 +1,7 @@ # # spec file # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -32,6 +32,8 @@ License: MIT URL: https://urllib3.readthedocs.org/ Source: https://files.pythonhosted.org/packages/source/u/urllib3/urllib3-%{version}.tar.gz +# PATCH-FIX-OPENSUSE openssl-3.2.patch gh#urllib3/urllib3#3271 +Patch1: openssl-3.2.patch BuildRequires: %{python_module base >= 3.7} BuildRequires: %{python_module hatchling} BuildRequires: %{python_module pip} ++++++ openssl-3.2.patch ++++++ Index: urllib3-2.1.0/changelog/3268.bugfix.rst =================================================================== --- /dev/null +++ urllib3-2.1.0/changelog/3268.bugfix.rst @@ -0,0 +1 @@ +Fixed handling of OpenSSL 3.2.0 new error message for misconfiguring an HTTP proxy as HTTPS. Index: urllib3-2.1.0/src/urllib3/connection.py =================================================================== --- urllib3-2.1.0.orig/src/urllib3/connection.py +++ urllib3-2.1.0/src/urllib3/connection.py @@ -864,6 +864,7 @@ def _wrap_proxy_error(err: Exception, pr is_likely_http_proxy = ( "wrong version number" in error_normalized or "unknown protocol" in error_normalized + or "record layer failure" in error_normalized ) http_proxy_warning = ( ". Your proxy appears to only use HTTP and not HTTPS, " Index: urllib3-2.1.0/test/with_dummyserver/test_socketlevel.py =================================================================== --- urllib3-2.1.0.orig/test/with_dummyserver/test_socketlevel.py +++ urllib3-2.1.0/test/with_dummyserver/test_socketlevel.py @@ -1297,7 +1297,8 @@ class TestSSL(SocketDummyServerTestCase) self._start_server(socket_handler) with HTTPSConnectionPool(self.host, self.port, ca_certs=DEFAULT_CA) as pool: with pytest.raises( - SSLError, match=r"(wrong version number|record overflow)" + SSLError, + match=r"(wrong version number|record overflow|record layer failure)", ): pool.request("GET", "/", retries=False)
