Skip to content

fix: validate paging parameters of ListTasks #114

Closed

Description

@uniqueg

Why?

GET /tasks answers 500 to an expired or malformed page_token, although it is a client error. page_size isn't validated: there is no upper limit, and very large values wrap around.

How?

  • Answer 400 Bad Request for a page_token that can't be used, with a message that names the parameter.
  • Validate page_size: positive, with a documented maximum (e.g. 2048, which the API description once named); 400 otherwise.
  • Regression tests first; update docs/api.md ("Listing tasks") and docs/upgrading.md.

Acceptance criteria

  • Invalid or expired page_token -> 400.
  • page_size outside the allowed range -> 400; the limit is documented.
  • Tests and docs match.

Activity

  1. added this to the v1.2.0 milestone on Nov 7, 2026
  2. added
    type: bug
    on Nov 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bug

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions