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

Đang mở
#10,388 1 bình luận 0 reaction 2 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@vihar đang làm issue này rồi.

Từ ngày 24/11/2026.

  • #10392 của @ashokram-si — đang mở
  • #10414 của @avesh-pathak — đang mở

Đánh giá

Issue này chưa được đánh giá.

Mô tả

🐛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)

Ngôn ngữ chính
TypeScript
Star
63k
Fork
6.5k
Merge trung bình
2 ngày 16 giờ
Pull request đã merge (30 ngày)
70

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của makeplane/plane

Tất cả issue của makeplane/plane

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.