Files
romm/backend/endpoints/forms
Zach Clendenen 438347615a fix(api): return 4xx for duplicate collections and overlong names
A duplicate collection name raised a 500. Names compare
case-insensitively in the database, so "TRUE" collides with "True".
Return 409 instead, as the existing test's name already said.

Memory card name and emulator, and the RetroAchievements username,
had no length check before the insert, so an overlong value failed in
the database with a 500. Validate them against their column lengths,
which returns 422.
2026-09-30 22:30:43 -05:00
..