From 6889db5beccea5b26680b069157260bc713071ee Mon Sep 17 00:00:00 2001 From: Steffen Sander Date: Wed, 20 May 2026 13:53:54 +0200 Subject: [PATCH 1/2] fix(extensibility): use ConsumptionLevel for UMS destination lookup MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The UMS transport passed Level.SUB_ACCOUNT to get_destination(), which appends '@SUB_ACCOUNT' to the URL path. The Destination Service V2 API rejects this with HTTP 400 because it expects lowercase level hints. Use ConsumptionLevel.PROVIDER_SUBACCOUNT instead, which resolves to '@provider_subaccount' — the correct value for provider-scoped destinations like the UMS mTLS destination. --- pyproject.toml | 2 +- src/sap_cloud_sdk/extensibility/_ums_transport.py | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 2e4f106..8a06d1b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "sap-cloud-sdk" -version = "0.19.1" +version = "0.19.2" description = "SAP Cloud SDK for Python" readme = "README.md" license = "Apache-2.0" diff --git a/src/sap_cloud_sdk/extensibility/_ums_transport.py b/src/sap_cloud_sdk/extensibility/_ums_transport.py index 437161a..76f69cf 100644 --- a/src/sap_cloud_sdk/extensibility/_ums_transport.py +++ b/src/sap_cloud_sdk/extensibility/_ums_transport.py @@ -23,7 +23,7 @@ import httpx -from sap_cloud_sdk.destination import Level +from sap_cloud_sdk.destination import ConsumptionLevel from sap_cloud_sdk.destination import create_client as create_destination_client from sap_cloud_sdk.extensibility._models import ( DEFAULT_EXTENSION_CAPABILITY_ID, @@ -540,7 +540,8 @@ def get_extension_capability_implementation( # 1. Resolve destination ----------------------------------------- try: dest = self._dest_client.get_destination( - self._destination_name, level=Level.SUB_ACCOUNT + self._destination_name, + level=ConsumptionLevel.PROVIDER_SUBACCOUNT, ) except Exception as exc: raise TransportError( From 7f771d5b67babc493217e0efc096f409b3a4024a Mon Sep 17 00:00:00 2001 From: Tiago Kochenborger Date: Wed, 20 May 2026 16:30:35 -0300 Subject: [PATCH 2/2] chore: bump version to v0.19.3 Merge main and align release version for UMS transport fix. --- pyproject.toml | 2 +- uv.lock | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 8a06d1b..e6cae92 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "sap-cloud-sdk" -version = "0.19.2" +version = "0.19.3" description = "SAP Cloud SDK for Python" readme = "README.md" license = "Apache-2.0" diff --git a/uv.lock b/uv.lock index d711855..0e5cebd 100644 --- a/uv.lock +++ b/uv.lock @@ -2924,7 +2924,7 @@ wheels = [ [[package]] name = "sap-cloud-sdk" -version = "0.19.2" +version = "0.19.3" source = { editable = "." } dependencies = [ { name = "grpcio" },