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

Abierto
#10,388 1 comentario 0 reacciones 2 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

@vihar ya está trabajando en esto.

Desde el 24/11/2026.

  • #10392 de @ashokram-si — abierto
  • #10414 de @avesh-pathak — abierto

Evaluación

Este issue todavía no se ha evaluado.

Descripción

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

Lenguaje dominante
TypeScript
Estrellas
63k
Forks
6.5k
Merge medio
2 d 16 h
PR fusionados (30 d)
70

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de makeplane/plane

Todos los issues de makeplane/plane

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.