Skip to content

Unit test using WebTestClient (POST with empty body, check status 400) fails with 2.0.4.RELEASE but ok with 2.0.2.RELEASE #14174

Closed
@marcpa00

Description

@marcpa00

Sample project showing the issue available at https://github.com/marcpa00/verify-400-with-empty-body

With Spring Boot 2.0.2.RELEASE, doing a POST with an empty body and asserting the response code is 400 works, changing for Spring Boot 2.0.4.RELEASE, the same test fails.
Currently, this is also using spring rest docs, I will try to remove that from the equation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    for: external-projectFor an external project and not something we can fixstatus: invalidAn issue that we don't feel is valid

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions