-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Form validation errors result in 400 Response #49
Comments
Hey @datenwerk-at, thank you for reporting the issue. I investigated it, but I need you to confirm, if I understood it correctly :) As far as I understand it, the issue is, that you get a I assume you want the error to be rendered in the form to give the user some kind of feedback. Furthermore the data should also not be lost right? |
Think we need here:
Render the form containing the errors, in case the request is from The more technical task here is that we need define a |
Hi guys, thanks for your comments.
That's exactly right. |
Actual Behavior
When Comment-form validation fails a 400-http-Response is sent back.
Expected Behavior
Comments form with validation errors is shown.
Steps to Reproduce
Extend Comment entity and CommentForm type and add a property with some constraint (eg. NotBlank).
On submission of empty form the validation fails and a "Bad Request" Response (400) is sent back to the client.
Possible Solutions
Change form-action to referrer and let the form handle the request there?
The text was updated successfully, but these errors were encountered: