Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-urllib3_1 for 
openSUSE:Factory checked in at 2024-01-12 23:44:34
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-urllib3_1 (Old)
 and      /work/SRC/openSUSE:Factory/.python-urllib3_1.new.21961 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-urllib3_1"

Fri Jan 12 23:44:34 2024 rev:8 rq:1138121 version:1.26.18

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-urllib3_1/python-urllib3_1.changes        
2024-01-08 23:44:24.524449950 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-urllib3_1.new.21961/python-urllib3_1.changes 
    2024-01-12 23:44:53.705430283 +0100
@@ -1,0 +2,6 @@
+Thu Jan 11 12:03:28 UTC 2024 - Daniel Garcia <daniel.gar...@suse.com>
+
+- 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_1.spec ++++++
--- /var/tmp/diff_new_pack.xCGqbz/_old  2024-01-12 23:44:54.245450048 +0100
+++ /var/tmp/diff_new_pack.xCGqbz/_new  2024-01-12 23:44:54.245450048 +0100
@@ -36,6 +36,8 @@
 # PATCH-FIX-UPSTREAM remove_mock.patch gh#urllib3/urllib3#2108 mc...@suse.com
 # remove dependency on the external module mock
 Patch0:         remove_mock.patch
+# PATCH-FIX-UPSTREAM openssl-3.2.patch gh#urllib3/urllib3#3271
+Patch1:         openssl-3.2.patch
 BuildRequires:  %{python_module base >= 3.7}
 BuildRequires:  %{python_module pip}
 BuildRequires:  %{python_module setuptools}

++++++ openssl-3.2.patch ++++++
Index: urllib3-1.26.18/changelog/3268.bugfix.rst
===================================================================
--- /dev/null
+++ urllib3-1.26.18/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-1.26.18/test/with_dummyserver/test_socketlevel.py
===================================================================
--- urllib3-1.26.18.orig/test/with_dummyserver/test_socketlevel.py
+++ urllib3-1.26.18/test/with_dummyserver/test_socketlevel.py
@@ -1226,7 +1226,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)
 
Index: urllib3-1.26.18/src/urllib3/connectionpool.py
===================================================================
--- urllib3-1.26.18.orig/src/urllib3/connectionpool.py
+++ urllib3-1.26.18/src/urllib3/connectionpool.py
@@ -768,7 +768,8 @@ class HTTPConnectionPool(ConnectionPool,
                 # so we try to cover our bases here!
                 message = " ".join(re.split("[^a-z]", str(ssl_error).lower()))
                 return (
-                    "wrong version number" in message or "unknown protocol" in 
message
+                    "wrong version number" in message or "unknown protocol" in 
message or "record layer failure" in message
+
                 )
 
             # Try to detect a common user error with proxies which is to

Reply via email to