domjudge icon indicating copy to clipboard operation
domjudge copied to clipboard

Handle invalid RGB value in problemset

Open meisterT opened this issue 10 months ago • 2 comments

When importing a problemset with invalid RGB values (such as #tobiii), it crashes the import, and provokes an internal server error that can only be fixed by manual database changes.

meisterT avatar Apr 18 '24 20:04 meisterT

What do we want here? I expected the code to NOT save the contest problem. Clearly it IS doing that, but is that the fix, not creating the contest problem and still throwing the error? Or should we fall back to some color?

nickygerritsen avatar Apr 23 '24 15:04 nickygerritsen

Ah I now know what's wrong: when adding all problems initially it already breaks but we don't check. I will add validation there.

nickygerritsen avatar Apr 23 '24 15:04 nickygerritsen