spring-projects / spring-boot

Spring Boot helps you to create Spring-powered, production-grade applications and services with absolute minimum fuss.
https://spring.io/projects/spring-boot
Apache License 2.0
75.31k stars 40.71k forks source link

Jersey body handling is inconsistent with Spring Webflux and Spring MVC #43209

Closed snicoll closed 2 days ago

snicoll commented 3 days ago

As discovered by @nosan the Jersey implementation of actuator endpoints accepts complex types in the body whereas Spring Weblux and Spring MVC do not.

An operation is meant to accept a Map<String,String> so the following should fail as it has a nested attribute:

{
  "jobData": {
    "key": "value"
  }
}

To make things consistent, we should update the Jersey implementation so that it fails in a similar fashion.