tryGetDestination() fails with "Failed to get destination" for NoAuthentication+IAS destination in subscriber tenant context
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 48/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- java, spring-boot
調査の方向性
DestinationAccessor.getLoader().tryGetDestination から開始し、その解決経路を DestinationService.getAllDestinationProperties() と比較します。指定された NoAuthentication プロパティと IAS プロパティを使用して subscriber-tenant のケースを再現し、メタデータの取得は成功する一方で完全な解決が失敗する理由を追跡します。tryGetDestination がユーザートークン交換なしで destination を返し、IAS 関連のプロパティを保持すれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Describe the Bug
When calling DestinationAccessor.getLoader().tryGetDestination("OneSimAPI_Destination") in a subscriber tenant context, the SDK fails with "Failed to get destination." for a destination configured with
Authentication=NoAuthentication and IAS-based M2M properties (cloudsdk.ias-dependency-name, tokenService.body.url).
The same destination is successfully returned by DestinationService.getAllDestinationProperties() (metadata-only call). The failure happens only during the full resolution via tryGetDestination.
This works correctly for another tenant on the same landscape with the same destination configuration (same auth type, same dependency name, different tokenService.body.url).
Steps to Reproduce
- Configure a BTP destination in a subscriber subaccount with:
- Authentication: NoAuthentication
- cloudsdk.ias-dependency-name: sim-supplier-search-api
- tokenService.body.url: https://.accounts.ondemand.com
- Call DestinationAccessor.getLoader().tryGetDestination("OneSimAPI_Destination") in the context of the subscriber tenant
- Observe failure with "Failed to get destination."
Expected Behavior
tryGetDestination() should successfully resolve the destination. Since the auth type is NoAuthentication, the SDK should not attempt user token exchange. The destination should be returned with its properties so
our code can handle the IAS token fetch separately using the cloudsdk.ias-dependency-name and tokenService.body.url properties.
Screenshots
No response
Used Versions
- SAP Cloud SDK: 5.20.0
- Java: 21
- Spring Boot: 3.x
- Landscape: CF EU30 (prod)
Code Examples
// Our call in DestinationCallProcessor.java
private Try tryGetDestination(String destinationName) {
return DestinationAccessor.getLoader().tryGetDestination(destinationName);
}
Destination configuration (sensitive values removed):
{
"Name": "OneSimAPI_Destination",
"Type": "HTTP",
"Authentication": "NoAuthentication",
"ProxyType": "Internet",
"URL": "https://.prod-eu30.supplier-info-management.procurement.cloud.sap/api/ambassador-srv-api/v1",
"cloudsdk.ias-dependency-name": "sim-supplier-search-api",
"tokenService.body.url": "https://.accounts.ondemand.com"
}
Stack Trace
No response
Log File
Log file
...Affected Development Phase
Production
Impact
Blocked
Timeline
No response
- 主要言語
- Java
- スター
- 41
- フォーク
- 33
- 平均マージ
- 18時間 34分
- マージ済み PR(30日)
- 19
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
SAP/cloud-sdk-java のほかの issue
-
bug
SAP/cloud-sdk-java#1270 · コメント 3 件 · 担当者 1 名 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
SAP/cloud-sdk-java#1268 · コメント 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
SAP/cloud-sdk-java#1250 ·
-
ZeroTrustIdentityService does not configure svidPicker, causing non-deterministic SVID selection オープンbug
難易度 3/5 1〜2日 初心者へのやさしさ 70/100
SAP/cloud-sdk-java#1243 · コメント 2 件 ·
-
bug
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
SAP/cloud-sdk-java#1226 · コメント 1 件 ·
SAP/cloud-sdk-java の issue をすべて見る
似ている issue
-
certification
難易度 1/5 1時間未満 初心者へのやさしさ 80/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
[BUG] ECR GetAuthorizationToken returns a proxyEndpoint for the default region, not the request's オープンbug ecr
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
Needs: Triage Type: Feature request
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
AntennaPod/AntennaPod#8794 ·
-
agentic-workflows
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
github/copilot-sdk#2760 ·