mirror of
https://github.com/wekan/wekan.git
synced 2026-11-24 20:45:00 -05:00
Deleting a comment or checklist/checklist-item could throw "Removed nonexistent document" on the client: the handlers called Collection.remove(_id) directly, but under heavy archive/delete churn the target doc can already be evicted from the client's Minimongo cache, and removing a missing _id throws. The comment / checklist / checklist-item delete handlers now check the doc still exists in the local cache before removing it. The server before.remove hooks were already hardened to guard + log instead of throwing. Partial: removes the thrown client exception; the high CPU on bulk delete the issue also reports is separate reactivity/mergebox churn and remains a follow-up. No automated regression — the eviction race is not deterministically reproducible; the guard is a self-evident findOne-then-remove. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>