Repository navigation
Conversation
Linux2010
force-pushed
the
codex/fix-rest-interceptor-payload
branch
from
November 23, 2026 22:55
f1d4323 to
355e0ed
Compare
Linux2010
force-pushed
the
codex/fix-rest-interceptor-payload
branch
from
November 24, 2026 22:56
355e0ed to
b72e580
Compare
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? |
Contributor
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
originaltochangedstill sentGET /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
mvn -q -pl client/transport/rest -am clean test(674 tests passed).git diff --check.