fix(http-client): always provide a fallback URL in A2ACardResolver by ehsavoie · Pull Request #1179 · a2aproject/a2a-java · GitHub
Skip to content

fix(http-client): always provide a fallback URL in A2ACardResolver - #1179

Merged
kabir merged 1 commit into
a2aproject:mainfrom
ehsavoie:issue_1178
Sep 25, 2026
Merged

kabir merged 1 commit into
a2aproject:mainfrom
ehsavoie:issue_1178

Conversation

@ehsavoie

Copy link
Copy Markdown
Collaborator

When the user-provided base URL matched the computed card URL, no fallback was attempted on 404. Now falls back to cleanBase in that case, and to the original URL otherwise.

This fixes #1178

When the user-provided base URL matched the computed card URL, no
fallback was attempted on 404. Now falls back to cleanBase in that
case, and to the original URL otherwise.

This fixes a2aproject#1178

Signed-off-by: Emmanuel Hugonnet <ehugonne@redhat.com>
@ehsavoie
ehsavoie requested a review from kabir September 25, 2026 09:23
@kabir
kabir merged commit 79a0d64 into a2aproject:main Sep 25, 2026
15 checks passed
@ehsavoie
ehsavoie deleted the issue_1178 branch October 19, 2026 07:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: A2ACardResolver fallback URL logic is wrong — no fallback when user provides the full card URL, and loses the original URL otherwise

2 participants