This is an automated email from the ASF dual-hosted git repository.
shahar1 pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new b62299ced8a Cap microsoft-kiota-http below 1.13 in the Microsoft Azure
provider (#74090)
b62299ced8a is described below
commit b62299ced8aedbe91b5f598b404cb0b1057ea24b
Author: David Blain <[email protected]>
AuthorDate: Fri Oct 2 18:07:24 2026 +0200
Cap microsoft-kiota-http below 1.13 in the Microsoft Azure provider (#74090)
microsoft-kiota-http 1.13.0 moved the request options from request.options
to request.extensions. msgraph-core 1.5.1 (the latest release) still only
runs its AsyncGraphTransport middleware when request.options exists, so with
kiota-http 1.13 and later every request skips redirects, retries, URL
replacement and the user agent handler. A drive item download then gets
Graph's raw 302 and KiotaRequestAdapterHook returns None. Cap the version
until msgraph-core reads request.extensions.
---
providers/microsoft/azure/README.rst | 2 +-
providers/microsoft/azure/docs/index.rst | 2 +-
providers/microsoft/azure/pyproject.toml | 7 ++++++-
uv.lock | 8 ++++----
4 files changed, 12 insertions(+), 7 deletions(-)
diff --git a/providers/microsoft/azure/README.rst
b/providers/microsoft/azure/README.rst
index 58167390169..8c12e4ba873 100644
--- a/providers/microsoft/azure/README.rst
+++ b/providers/microsoft/azure/README.rst
@@ -80,7 +80,7 @@ PIP package Version required
``azure-mgmt-containerinstance`` ``>=10.1.0``
``msgraph-core`` ``>=1.3.3``
``msgraphfs`` ``>=0.3.0``
-``microsoft-kiota-http`` ``>=1.9.4,<2.0.0``
+``microsoft-kiota-http`` ``<1.13.0,>=1.9.4``
``microsoft-kiota-serialization-json`` ``>=1.9.4``
``microsoft-kiota-serialization-text`` ``>=1.9.4``
``microsoft-kiota-abstractions`` ``>=1.9.4,<2.0.0``
diff --git a/providers/microsoft/azure/docs/index.rst
b/providers/microsoft/azure/docs/index.rst
index 1c5cee9f736..cbf4bb23d8c 100644
--- a/providers/microsoft/azure/docs/index.rst
+++ b/providers/microsoft/azure/docs/index.rst
@@ -136,7 +136,7 @@ PIP package Version required
``azure-mgmt-containerinstance`` ``>=10.1.0``
``msgraph-core`` ``>=1.3.3``
``msgraphfs`` ``>=0.3.0``
-``microsoft-kiota-http`` ``>=1.9.4,<2.0.0``
+``microsoft-kiota-http`` ``<1.13.0,>=1.9.4``
``microsoft-kiota-serialization-json`` ``>=1.9.4``
``microsoft-kiota-serialization-text`` ``>=1.9.4``
``microsoft-kiota-abstractions`` ``>=1.9.4,<2.0.0``
diff --git a/providers/microsoft/azure/pyproject.toml
b/providers/microsoft/azure/pyproject.toml
index d0c489d1e82..d921466ed5d 100644
--- a/providers/microsoft/azure/pyproject.toml
+++ b/providers/microsoft/azure/pyproject.toml
@@ -88,7 +88,12 @@ dependencies = [
"azure-mgmt-containerinstance>=10.1.0",
"msgraph-core>=1.3.3",
"msgraphfs>=0.3.0",
- "microsoft-kiota-http>=1.9.4,<2.0.0",
+ # microsoft-kiota-http 1.13+ passes request options in request.extensions,
which msgraph-core
+ # 1.5.1 ignores: its AsyncGraphTransport then skips the whole middleware
chain (no redirects,
+ # no retries). Remove the <1.13.0 cap once a msgraph-core release reads
request.extensions;
+ # tracked at https://github.com/apache/airflow/issues/74089
+ # and https://github.com/microsoftgraph/msgraph-sdk-python-core/issues/1128
+ "microsoft-kiota-http>=1.9.4,<1.13.0",
"microsoft-kiota-serialization-json>=1.9.4",
"microsoft-kiota-serialization-text>=1.9.4",
"microsoft-kiota-abstractions>=1.9.4,<2.0.0",
diff --git a/uv.lock b/uv.lock
index 0e3392d9ffc..18197984171 100644
--- a/uv.lock
+++ b/uv.lock
@@ -6783,7 +6783,7 @@ requires-dist = [
{ name = "azure-synapse-spark", specifier = ">=0.7.0" },
{ name = "microsoft-kiota-abstractions", specifier = ">=1.9.4,<2.0.0" },
{ name = "microsoft-kiota-authentication-azure", specifier =
">=1.9.4,<2.0.0" },
- { name = "microsoft-kiota-http", specifier = ">=1.9.4,<2.0.0" },
+ { name = "microsoft-kiota-http", specifier = ">=1.9.4,<1.13.0" },
{ name = "microsoft-kiota-serialization-json", specifier = ">=1.9.4" },
{ name = "microsoft-kiota-serialization-text", specifier = ">=1.9.4" },
{ name = "msal-extensions", specifier = ">=1.3.0" },
@@ -17647,7 +17647,7 @@ wheels = [
[[package]]
name = "microsoft-kiota-http"
-version = "1.14.0"
+version = "1.12.3"
source = { registry = "https://pypi.org/simple" }
dependencies = [
{ name = "httpx", extra = ["http2"] },
@@ -17655,9 +17655,9 @@ dependencies = [
{ name = "opentelemetry-api" },
{ name = "opentelemetry-sdk" },
]
-sdist = { url =
"https://files.pythonhosted.org/packages/93/8b/6a222510f5121794c6e223001c3a504fb6a2b289329c6f526fd9461842a9/microsoft_kiota_http-1.14.0.tar.gz",
hash =
"sha256:40f2a72570eb3bd09c3b7134bcc476cb0c19478077712770d0844b11078b83e0", size
= 24603, upload-time = "2026-09-21T15:24:32.234Z" }
+sdist = { url =
"https://files.pythonhosted.org/packages/71/6b/efb612761dd1f24e2018951591ac75bc7fe740413cec149ee3222be58743/microsoft_kiota_http-1.12.3.tar.gz",
hash =
"sha256:42a441de951c5f2d5e292663238018ea0b9e01e7c20715d58f14c44040b42f58", size
= 22552, upload-time = "2026-09-11T18:42:38.858Z" }
wheels = [
- { url =
"https://files.pythonhosted.org/packages/2e/3f/e4a59b46a39637f21f4d3c578cd4954b644390a85b4b408ae5c11f9d9e5e/microsoft_kiota_http-1.14.0-py3-none-any.whl",
hash =
"sha256:00de0a14b776e4ba23d87ae08f7c596f7335e3a96f293e800962c168fa271df7", size
= 35702, upload-time = "2026-09-21T15:24:39.964Z" },
+ { url =
"https://files.pythonhosted.org/packages/81/55/9e95bda1d3a9d9827d7e5d779952a7b677e81b28acfefca0036ccf681dab/microsoft_kiota_http-1.12.3-py3-none-any.whl",
hash =
"sha256:362d82292016de0641cadcecea8055ca0cfda06390448ce7347a352bd582f006", size
= 32074, upload-time = "2026-09-11T18:42:46.425Z" },
]
[[package]]