Skip to content

fix: reject invalid REST boolean query values - #1383

Merged
mykytanetipa merged 3 commits into
a2aproject:mainfrom
Boulea7:fix/rest-boolean-query-values-20261026
Oct 27, 2026
Merged

mykytanetipa merged 3 commits into
a2aproject:mainfrom
Boulea7:fix/rest-boolean-query-values-20261026

Conversation

@Boulea7

@Boulea7 Boulea7 commented Oct 26, 2026

Copy link
Copy Markdown
Contributor

Description

GET /tasks?includeArtifacts=garbage currently returns 200 and treats the value as false, silently omitting artifacts. Reject unrecognized boolean query values with the existing 400 INVALID_ARGUMENT response before calling the request handler.

Preserve case-insensitive true/false parsing, the omitted-parameter default, and last-value-wins behavior. Regression tests cover public REST requests and parameter parsing, including malformed values, artifact responses, and error messages that do not echo the supplied value.

  • Follow the CONTRIBUTING guide.
  • Use a Conventional Commits title.
  • Tests and linter pass.
  • No documentation change is needed.

Validation:

  • ./scripts/lint.sh
  • Full suite: 2358 passed, 199 skipped, 3 xfailed, 1 xpassed (192 warnings).
  • Coverage: 92.33%, above the 88% requirement.

The local full-suite and coverage runs used a temporary helper that continuously drains the cross-version fixture servers' output to avoid blocked pipes. The fixture assertions and timeouts were unchanged.

@Boulea7
Boulea7 requested a review from a team as a code owner October 26, 2026 07:11
@github-actions

github-actions Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

🧪 Code Coverage (vs main)

⬇️ Download Full Report

Base PR Delta
src/a2a/server/events/event_queue_v2.py 91.79% 92.27% 🟢 +0.48%
src/a2a/utils/proto_utils.py 95.78% 95.85% 🟢 +0.07%
src/a2a/utils/telemetry.py 90.70% 91.47% 🟢 +0.78%
Total 93.10% 93.12% 🟢 +0.02%

Generated by coverage-comment.yml

@mykytanetipa mykytanetipa self-assigned this Oct 26, 2026

@mykytanetipa mykytanetipa left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mykytanetipa
mykytanetipa merged commit babc3f5 into a2aproject:main Oct 27, 2026
17 checks passed
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.

2 participants