Skip to content

Form validation errors result in 400 Response #49

@datenwerk-at

Description

@datenwerk-at
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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions