[bug]: Transferring work items to a cycle that does not exist returns 500

Aperta
#10,390 1 commento 0 reazioni 2 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@vihar ci sta già lavorando.

Dal 24/11/2026.

  • #10391 di @ashokram-si — aperta

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

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

transfer_cycle_issues (apps/api/plane/utils/cycle_transfer_issues.py) loads the target cycle with .first() and then reads new_cycle.end_date, so a new_cycle_id that is not a cycle of the project (deleted, or from another project) raises AttributeError: 'NoneType' object has no attribute 'end_date' and returns a 500. Both the web app endpoint and the public API endpoint go through it.

Steps to reproduce
  1. POST /api/workspaces/<slug>/projects/<project_id>/cycles/<cycle_id>/transfer-issues/ with {"new_cycle_id": "<a random uuid>"}.
  2. The response is a 500.
Environment

Production

Browser

None

Edition

Community

Version

v1.5.0 (also on preview at 723bb178f)

Lingua principale
TypeScript
Stelle
63k
Fork
6.5k
Merge medio
2g 16h
PR unite (30g)
70

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di makeplane/plane

Tutte le issue di makeplane/plane

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.