Skip to content

fix(server): validate requested minor protocol version (#1294) - #1297

Merged
kabir merged 1 commit into
a2aproject:mainfrom
soheilqalamkari:issue-1294-version-minor-validation
Nov 6, 2026
Merged

kabir merged 1 commit into
a2aproject:mainfrom
soheilqalamkari:issue-1294-version-minor-validation

Conversation

@soheilqalamkari

Copy link
Copy Markdown
Contributor

Summary

Fixes #1294 by validating the requested A2A Major.Minor version against the server's advertised interfaces. A matching major version alone is no longer sufficient. Patch versions remain ignored during negotiation, and absent or empty version values continue to default to 0.3.

Adds regression coverage in the shared validator and request policy, plus JSON-RPC, REST, and gRPC handler tests to verify unsupported minor versions are rejected before normal request processing.

Verification

  • Reproduced the issue before the fix across JSON-RPC, REST, and gRPC.
  • Focused server-common and transport tests passed.
  • mvn --batch-mode --no-transfer-progress clean install passed across all 83 reactor modules.
  • git diff --check passed.

The full TCK was not run as part of this SDK fix.

@kabir
kabir merged commit 31455e9 into a2aproject:main Nov 6, 2026
14 checks passed
@kabir

kabir commented Nov 6, 2026

Copy link
Copy Markdown
Collaborator

Thanks @soheilqalamkari !

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.

Clarify server handling of same-major, different-minor A2A-Version values

2 participants