TestDispatcherServlet ambiguous handler methods with consumes condition and body not required #23978
Labels
in: test
Issues in the test module
in: web
Issues in web modules (web, webmvc, webflux, websocket)
type: regression
A bug that is also a regression
Milestone
The following servlet works in production code, but fails from within junit.
The problem is that requestbody is marked as false here, which seems to confuse the TestDispatcherServlet.
spring-boot-2.2.1:RELEASE
.It used to work in
spring-boot-2.1.9.RELEASE
.It is probably caused by introduction of method body checks in:
45147c2#diff-1f02d8b67b89d3bfbec03633e5499294
Test:
Logs:
The text was updated successfully, but these errors were encountered: