Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-azure-core for 
openSUSE:Factory checked in at 2026-02-21 21:00:48
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-azure-core (Old)
 and      /work/SRC/openSUSE:Factory/.python-azure-core.new.1977 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-azure-core"

Sat Feb 21 21:00:48 2026 rev:62 rq:1333957 version:1.38.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-azure-core/python-azure-core.changes      
2026-02-13 12:41:26.716979674 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-azure-core.new.1977/python-azure-core.changes
    2026-02-21 21:01:10.798969851 +0100
@@ -1,0 +2,8 @@
+Thu Feb 19 08:28:44 UTC 2026 - John Paul Adrian Glaubitz 
<[email protected]>
+
+- New upstream release
+  + Version 1.38.2
+  + For detailed information about changes see the
+    CHANGELOG.md file provided with this package
+
+-------------------------------------------------------------------

Old:
----
  azure_core-1.38.1.tar.gz

New:
----
  azure_core-1.38.2.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-azure-core.spec ++++++
--- /var/tmp/diff_new_pack.BY4xcY/_old  2026-02-21 21:01:12.823052833 +0100
+++ /var/tmp/diff_new_pack.BY4xcY/_new  2026-02-21 21:01:12.835053325 +0100
@@ -18,7 +18,7 @@
 
 %{?sle15_python_module_pythons}
 Name:           python-azure-core
-Version:        1.38.1
+Version:        1.38.2
 Release:        0
 Summary:        Microsoft Azure Core Library for Python
 License:        MIT

++++++ azure_core-1.38.1.tar.gz -> azure_core-1.38.2.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/azure_core-1.38.1/CHANGELOG.md 
new/azure_core-1.38.2/CHANGELOG.md
--- old/azure_core-1.38.1/CHANGELOG.md  2026-02-11 01:38:46.000000000 +0100
+++ new/azure_core-1.38.2/CHANGELOG.md  2026-02-18 03:29:16.000000000 +0100
@@ -1,10 +1,16 @@
 # Release History
 
+## 1.38.2 (2026-02-18)
+
+### Bugs Fixed
+
+- Fixed `PipelineClient.format_url` to preserve the leading slash when the URL 
template starts with `/?`. #45218
+
 ## 1.38.1 (2026-02-10)
 
 ### Bugs Fixed
 
-- Fixed `PipelineClient.format_url` to avoid adding trailing slashes when the 
URL template contains only query parameters.  #45044
+- Fixed `PipelineClient.format_url` to avoid adding trailing slashes when the 
URL template contains only query parameters. #45044
 
 ## 1.38.0 (2026-01-12)
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/azure_core-1.38.1/PKG-INFO 
new/azure_core-1.38.2/PKG-INFO
--- old/azure_core-1.38.1/PKG-INFO      2026-02-11 01:39:22.475735700 +0100
+++ new/azure_core-1.38.2/PKG-INFO      2026-02-18 03:29:53.482592800 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 2.4
 Name: azure-core
-Version: 1.38.1
+Version: 1.38.2
 Summary: Microsoft Azure Core Library for Python
 Home-page: 
https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core
 Author: Microsoft Corporation
@@ -323,11 +323,17 @@
 
 # Release History
 
+## 1.38.2 (2026-02-18)
+
+### Bugs Fixed
+
+- Fixed `PipelineClient.format_url` to preserve the leading slash when the URL 
template starts with `/?`. #45218
+
 ## 1.38.1 (2026-02-10)
 
 ### Bugs Fixed
 
-- Fixed `PipelineClient.format_url` to avoid adding trailing slashes when the 
URL template contains only query parameters.  #45044
+- Fixed `PipelineClient.format_url` to avoid adding trailing slashes when the 
URL template contains only query parameters. #45044
 
 ## 1.38.0 (2026-01-12)
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/azure_core-1.38.1/azure/core/_version.py 
new/azure_core-1.38.2/azure/core/_version.py
--- old/azure_core-1.38.1/azure/core/_version.py        2026-02-11 
01:38:46.000000000 +0100
+++ new/azure_core-1.38.2/azure/core/_version.py        2026-02-18 
03:29:16.000000000 +0100
@@ -9,4 +9,4 @@
 # regenerated.
 # --------------------------------------------------------------------------
 
-VERSION = "1.38.1"
+VERSION = "1.38.2"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/azure_core-1.38.1/azure/core/pipeline/transport/_base.py 
new/azure_core-1.38.2/azure/core/pipeline/transport/_base.py
--- old/azure_core-1.38.1/azure/core/pipeline/transport/_base.py        
2026-02-11 01:38:46.000000000 +0100
+++ new/azure_core-1.38.2/azure/core/pipeline/transport/_base.py        
2026-02-18 03:29:16.000000000 +0100
@@ -132,7 +132,7 @@
     # 
https://docs.python.org/3/library/collections.html?highlight=namedtuple#collections.namedtuple
     if stub_url_path:
         parsed_base_url = parsed_base_url._replace(
-            path=parsed_base_url.path.rstrip("/") + "/" + stub_url_path,
+            path=parsed_base_url.path.rstrip("/") + "/" + 
stub_url_path.lstrip("/"),
         )
     if stub_url_query:
         query_params = [stub_url_query]
@@ -662,7 +662,6 @@
         if url:
             parsed = urlparse(url)
             if not parsed.scheme or not parsed.netloc:
-                url = url.lstrip("/")
                 try:
                     base = self._base_url.format(**kwargs).rstrip("/")
                 except KeyError as key:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/azure_core-1.38.1/azure_core.egg-info/PKG-INFO 
new/azure_core-1.38.2/azure_core.egg-info/PKG-INFO
--- old/azure_core-1.38.1/azure_core.egg-info/PKG-INFO  2026-02-11 
01:39:22.000000000 +0100
+++ new/azure_core-1.38.2/azure_core.egg-info/PKG-INFO  2026-02-18 
03:29:53.000000000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 2.4
 Name: azure-core
-Version: 1.38.1
+Version: 1.38.2
 Summary: Microsoft Azure Core Library for Python
 Home-page: 
https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core
 Author: Microsoft Corporation
@@ -323,11 +323,17 @@
 
 # Release History
 
+## 1.38.2 (2026-02-18)
+
+### Bugs Fixed
+
+- Fixed `PipelineClient.format_url` to preserve the leading slash when the URL 
template starts with `/?`. #45218
+
 ## 1.38.1 (2026-02-10)
 
 ### Bugs Fixed
 
-- Fixed `PipelineClient.format_url` to avoid adding trailing slashes when the 
URL template contains only query parameters.  #45044
+- Fixed `PipelineClient.format_url` to avoid adding trailing slashes when the 
URL template contains only query parameters. #45044
 
 ## 1.38.0 (2026-01-12)
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/azure_core-1.38.1/tests/test_basic_transport.py 
new/azure_core-1.38.2/tests/test_basic_transport.py
--- old/azure_core-1.38.1/tests/test_basic_transport.py 2026-02-11 
01:38:46.000000000 +0100
+++ new/azure_core-1.38.2/tests/test_basic_transport.py 2026-02-18 
03:29:16.000000000 +0100
@@ -128,9 +128,16 @@
 
 def test_url_join():
     assert _urljoin("devstoreaccount1", "?testdir") == 
"devstoreaccount1?testdir"
+    assert _urljoin("devstoreaccount1", "?testdir=foo") == 
"devstoreaccount1?testdir=foo"
+    assert _urljoin("devstoreaccount1/api", "?a=1") == 
"devstoreaccount1/api?a=1"
+    assert (
+        _urljoin("devstoreaccount1", "/?restype=service&comp=properties")
+        == "devstoreaccount1/?restype=service&comp=properties"
+    )
     assert _urljoin("devstoreaccount1", "") == "devstoreaccount1"
     assert _urljoin("devstoreaccount1", "testdir/") == 
"devstoreaccount1/testdir/"
     assert _urljoin("devstoreaccount1/", "") == "devstoreaccount1/"
+    assert _urljoin("devstoreaccount1/", "/testdir/") == 
"devstoreaccount1/testdir/"
     assert _urljoin("devstoreaccount1/", "testdir/") == 
"devstoreaccount1/testdir/"
     assert _urljoin("devstoreaccount1?a=1", "testdir/") == 
"devstoreaccount1/testdir/?a=1"
     assert _urljoin("devstoreaccount1", "testdir/?b=2") == 
"devstoreaccount1/testdir/?b=2"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/azure_core-1.38.1/tests/test_pipeline.py 
new/azure_core-1.38.2/tests/test_pipeline.py
--- old/azure_core-1.38.1/tests/test_pipeline.py        2026-02-11 
01:38:46.000000000 +0100
+++ new/azure_core-1.38.2/tests/test_pipeline.py        2026-02-18 
03:29:16.000000000 +0100
@@ -38,6 +38,7 @@
 
 from azure.core.configuration import Configuration
 from azure.core.pipeline import Pipeline
+from azure.core.rest import HttpRequest
 from azure.core import PipelineClient
 from azure.core.pipeline.policies import (
     SansIOHTTPPolicy,
@@ -206,6 +207,39 @@
     assert formatted == 
"https://bing.com/path/subpath?query=testvalue&x=2ndvalue&a=X&c=Y";
 
 
+def test_format_url_query_strings():
+    client = PipelineClientBase("https://foo.core.windows.net";)
+    formatted = client.format_url("/")
+    assert formatted == "https://foo.core.windows.net/";
+
+    formatted = client.format_url("/?a=X&c=Y")
+    assert formatted == "https://foo.core.windows.net/?a=X&c=Y";
+
+    formatted = client.format_url("?a=X&c=Y")
+    assert formatted == "https://foo.core.windows.net?a=X&c=Y";
+
+    formatted = client.format_url("/Tables/?a=X&c=Y")
+    assert formatted == "https://foo.core.windows.net/Tables/?a=X&c=Y";
+
+    formatted = client.format_url("/Tables?a=X&c=Y")
+    assert formatted == "https://foo.core.windows.net/Tables?a=X&c=Y";
+
+
+def test_format_url_from_http_request():
+    client = PipelineClientBase("https://foo.core.windows.net";)
+
+    _url = "/"
+    _params = {"foo": "bar"}
+    request = HttpRequest("GET", _url, params=_params)
+    formatted = client.format_url(request.url)
+    assert formatted == "https://foo.core.windows.net/?foo=bar";
+
+    _url = "?restype=service&comp=properties"
+    request = HttpRequest("GET", _url)
+    formatted = client.format_url(request.url)
+    assert formatted == 
"https://foo.core.windows.net?restype=service&comp=properties";
+
+
 def test_format_url_braces_with_dot():
     base_url = "https://bing.com/{aaa.bbb}";
     with pytest.raises(ValueError):

Reply via email to