mirror of
https://github.com/go-vikunja/vikunja.git
synced 2026-08-31 12:45:51 -05:00
address pr-swarm finding: index is documented read only but huma does not strip read only fields from a request body, so a caller could post index MaxInt64. calculateNextTaskIndex then wrapped to MinInt64 and every later create in that project collided on the unique (project, index) constraint - one request, task creation in a shared project broken for everyone, permanently. Internal callers legitimately pass an index (duplication keeps task numbering), so an implausible one now falls back to the server assigned next index instead of being rejected outright. Claude-Session: https://claude.ai/code/session_01GR9u1EFvq994jqGoeJqYSX