Repository navigation
fix(rest): ensure taskId is correctly set from path parameters when creating push notification configs - #740
Merged
Conversation
…g push notification configs
🧪 Code Coverage
Generated by coverage-comment.yml |
ishymko
approved these changes
Sep 21, 2026
bartek-gralewicz
approved these changes
Sep 22, 2026
bartek-gralewicz
pushed a commit
that referenced
this pull request
Sep 24, 2026
🤖 I have created a release *beep* *boop* --- ## [1.2.1](v1.2.0...v1.2.1) (2026-09-24) ### Bug Fixes * issue that status or artifact events do not propagate the metatadata to the task ([#748](#748)) ([72588af](72588af)) * **jsonrpc:** return JSON-RPC errors as HTTP 200 and dispatch on A2A-Version ([#747](#747)) ([733259d](733259d)) * **rest:** ensure taskId is correctly set from path parameters when creating push notification configs ([#740](#740)) ([4a42ec1](4a42ec1)) * **server:** add optional media type validation against agent defaultInputModes ([#745](#745)) ([27659a2](27659a2)) * validate JSON-RPC response version ([#698](#698)) ([e0cdc91](e0cdc91)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
This was referenced Oct 9, 2026
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.
Description
ACTS conformance testing caught this: every push-notification test failed against the REST binding with 400 "Task ID is required", while JSON-RPC and gRPC passed.
POST /tasks/:taskId/pushNotificationConfigsdeclared the path param and documented it, then built the config from req.body alone:The proto binds task_id into the URL:
The sibling list, get and delete routes have always read req.params.taskId; this one was the outlier, and the only route that rebuilds a whole request message from the body.
It went unnoticed because our own REST client sends taskId in the path and the body, so a2a-js could always talk to itself.
Fix: merge the path param before parsing, with the path winning over a body that repeats it, since the URL is what addressed the resource.
Before:
After: