code4romania / sunrise

Mozilla Public License 2.0
0 stars 1 forks source link

Missing Input Validation in 'Inregistreaza caz nou' Leads to Internal Server Error #276

Open andrei-manda opened 5 days ago

andrei-manda commented 5 days ago

Description

Some inputs lack of proper validation, which can cause BE errors with a 500 status.

For example, in step two of 'Inregistreaza caz nou' module, the "Adresă domiciliu legal" input allows users to enter addresses that are 256 characters or longer, and when the form is submitted the BE returns an Internal Server Error.

If the user closes the error modal, edits the form, and resends it, the system will display the same Internal Server Error message.

However, each time the "Creare" button is clicked, a new entry is added to the Cases List.

Observation

The newly added entry does not include the address that was entered.

image