Skip to content

fix: honor interceptor payload in REST request URLs - #1330

Closed
Linux2010 wants to merge 1 commit into
a2aproject:mainfrom
Linux2010:codex/fix-rest-interceptor-payload
Closed

Linux2010 wants to merge 1 commit into
a2aproject:mainfrom
Linux2010:codex/fix-rest-interceptor-payload

Conversation

@Linux2010

Copy link
Copy Markdown
Contributor

Summary

Fixes #1329 for the v1 HTTP+JSON transport. An interceptor could modify a request's task ID, tenant or filters, but REST URLs were still built from the original arguments. For example, a GetTask interceptor changing original to changed still sent GET /tasks/original.

Build the resource path, query parameters and tenant from the interceptor's resulting protobuf request. Cover builder and immutable payloads, a null return, explicit optional zero/false values, default tenants and the task, list, push-config, message and subscription operations with real HTTP requests.

The extended Agent Card interceptor now receives a request builder instead of null so it can modify the tenant. This is an observable payload-shape change; interceptors that return null and add headers remain supported. Proto3 scalar fields without presence cannot distinguish an interceptor explicitly setting an empty value from an absent value.

This changes the same REST file as #1327 and #1328 and will need reconciliation according to their merge order. The v0.3 REST and v1 gRPC paths are not covered by this PR.

Validation

  • Confirmed the original GetTask regression against a real HTTP server before the fix.
  • mvn -q -pl client/transport/rest -am clean test (674 tests passed).
  • git diff --check.

@Linux2010
Linux2010 force-pushed the codex/fix-rest-interceptor-payload branch from f1d4323 to 355e0ed Compare November 23, 2026 22:55
@Linux2010
Linux2010 force-pushed the codex/fix-rest-interceptor-payload branch from 355e0ed to b72e580 Compare November 24, 2026 22:56
@kabir

kabir commented Nov 26, 2026

Copy link
Copy Markdown
Collaborator

Hi @Linux2010 - I merged #1333. Codex tells me it contains the work in this PR, so can this be closed or does it still serve a purpose?

@Linux2010

Copy link
Copy Markdown
Contributor Author

Thanks @kabir — confirmed that #1333 includes the fix for honoring interceptor payloads in REST request URLs. Closing this PR as it's superseded. Appreciate you checking on this!

@Linux2010 Linux2010 closed this Nov 27, 2026
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.

REST transport ignores interceptor changes to URL-bound request fields

2 participants