Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

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

Đang mở
#1,182 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 2 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
74/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
java
Lĩnh vực
api, backend

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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
Ngôn ngữ chính
Java
Star
495
Fork
174
Merge trung bình
1 ngày 14 giờ
Pull request đã merge (30 ngày)
48

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của a2aproject/a2a-java

Tất cả issue của a2aproject/a2a-java

Issue tương tự

Thêm issue về Java

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.