[bug]: Work item search API returns 500 when limit is not a positive whole number

オープン
#10,388 コメント 1 件 リアクション 0 件 担当者 2 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@vihar がすでに取り組んでいます。

2026年11月24日 から。

  • #10392 @ashokram-si による — オープン
  • #10414 @avesh-pathak による — オープン

評価

この issue はまだ評価されていません。

説明

🐛bug plane
Is there an existing issue for this?
  • I have searched the existing issues
Current behavior

GET /api/v1/workspaces/<slug>/issues/search/ slices the results with [: int(limit)] (apps/api/plane/api/views/issue.py). limit=abc and limit=1.5 fail with ValueError and a 500, and limit=-1 fails with "Negative indexing is not supported", also a 500. There is no upper bound either. The paginated endpoints check per_page and answer with a 400.

Steps to reproduce
  1. GET /api/v1/workspaces/<slug>/issues/search/?search=foo&workspace_search=true&limit=abc with an API key.
  2. The response is a 500.
  3. The same with limit=-1.
Environment

Production

Browser

None

Edition

Community

Version

v1.5.0 (also on preview at 723bb178f)

主要言語
TypeScript
スター
63k
フォーク
6.5k
平均マージ
2日 16時間
マージ済み PR(30日)
70

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

makeplane/plane のほかの issue

makeplane/plane の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。