Skip to content

Fix: Prevent 500 POST errors via strict frontend schema validation during Round Creation - #454

Closed
ayushshukla1807 wants to merge 1 commit into
hatnote:masterfrom
ayushshukla1807:gsoc-2026-ui-input-validation
Closed

Fix: Prevent 500 POST errors via strict frontend schema validation during Round Creation#454
ayushshukla1807 wants to merge 1 commit into
hatnote:masterfrom
ayushshukla1807:gsoc-2026-ui-input-validation

Conversation

@ayushshukla1807

@ayushshukla1807 ayushshukla1807 commented Mar 30, 2026

Copy link
Copy Markdown
Contributor

Fixes #447.

Tightened the frontend constraints on RoundNew.vue so people can't submit broken or empty round configurations and trigger unhandled 500 stack traces on the backend.

@ayushshukla1807

Copy link
Copy Markdown
Contributor Author

🧪 Local Testing Verification

I've successfully verified this fix locally. As shown in the screenshot below, when an organizer attempts to submit an empty form, the synchronous frontend validation intercepts the payload before the network request is fired.

This immediately resolves the KeyError/ValueError 500 internal server crash (Issue #447/#451) and provides instant UI feedback to the organizer without wasting backend resources.

@ayushshukla1807
ayushshukla1807 deleted the gsoc-2026-ui-input-validation branch April 10, 2026 22:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

First round creation without images succeeds with zero entries, blocking subsequent round creation

1 participant