Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

[Bug]: resolveAgentCard() fails in pure multi-tenant setup with no default @PublicAgentCard

クローズ
#1,182 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
74/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
java
領域
api, backend

調査の方向性

Start with JSONRPCHandler.resolveAgentCard() around line 783, then compare the equivalent path in RestHandler and trace AgentCardValidator.resolveWithFallback() through CdiUtils.resolveDefault(). Reproduce an RPC call using only @Tenant-qualified @PublicAgentCard beans; done means capability guards resolve the tenant card without IllegalStateException while getAgentCard(tenant) continues to work.

索引モデルが issue の本文から書いたものです。

説明

What happened?

When all @PublicAgentCard beans carry a @Tenant qualifier and no un-qualified default exists, JSONRPCHandler.resolveAgentCard() (and the equivalent in RestHandler) throws IllegalStateException("No agent card configured") on every RPC call.

The capability guards (streaming, push notifications, extended agent card, version/extension validation) all go through resolveAgentCard() → AgentCardValidator.resolveWithFallback() → CdiUtils.resolveDefault(), which skips every @Tenant-qualified bean and returns null.

Meanwhile getAgentCard(tenant) works correctly because it delegates to the AgentCardRouter.

Affected code:

  • JSONRPCHandler.resolveAgentCard() (line 783)
  • RestHandler has the same pattern
  • AgentCardValidator.resolveWithFallback() — no router fallback
Relevant log output

Code of Conduct
  • I agree to follow this project's Code of Conduct
主要言語
Java
スター
500
フォーク
179
平均マージ
1日 16時間
マージ済み PR(30日)
48

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

a2aproject/a2a-java のほかの issue

a2aproject/a2a-java の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。