AbstractJackson2Encoder
encodes empty Flux to invalid JSON
#29274
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
type: regression
A bug that is also a regression
Milestone
M6 introduced a bug in the
AbstractJackson2Encoder
(I think I have narrowed it down to #28401):Returning an empty
Flux
from a WebFlux endpoint yields the following JSON:]
I created a project that reproduces this here:
demo.zip
Unzip and run
./mvnw test
, a test failure pops up:Open the pom and switch the Spring Framework version to 6.0.0-M5 and run again: Test is fixed, the logged response body is
as expected.
The project has a controller:
And a test that calls the controller methods:
The text was updated successfully, but these errors were encountered: