Note that with request body is the same for both and is valid. The 'springErrorGenerator' test generates the error. Note that with this test, I am attempting to capture using Spring Rest Docs the Spring response body when the required URL parameter is missing, such as can be displayed by making a test call such as this:
This is an issue indeed since the test uses a mock server request connected directly to the client-side request body Flux, and the 400 occurs before the request body is read.
Peter Luttrell opened SPR-17363 and commented
Experienced with Spring 5.1.0 RELEASE that is included with SpringBoot 2.1.0.M4.
With the following controller:
And the following tests:
I'm experiencing the following exception:
Note that with request body is the same for both and is valid. The 'springErrorGenerator' test generates the error. Note that with this test, I am attempting to capture using Spring Rest Docs the Spring response body when the required URL parameter is missing, such as can be displayed by making a test call such as this:
Affects: 5.1 GA
Referenced from: commits 8df0bc8, c567e65
The text was updated successfully, but these errors were encountered: