Compare API crashes: user_id='system' violates FK constraint #10
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
POST /api/comparecrashes with a 500 error because it usesuser_id = "system"which doesn't exist in the users table.Root Cause
The compare endpoint hardcodes
user_idas"system"when no authenticated session is found, but thecomparisonstable has a foreign key constraint.Impact
Fix
/api/compare-- return 401 if no session"system"user_id fallbackSeverity: Critical - core app functionality broken.