| Q |
A |
| Bug? |
yes |
| New Feature? |
no |
| Sulu Version |
Bundle 2.0.0; Sulu 2.5.10 |
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?
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?