You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After switching from spring-web:6.2.6 to spring-web:6.2.8 one of the tests in our app stopped working.
After some investigation we found out that TestRestTemplate was not sending a request body when making a DELETE request:
val body =HttpEntity("""["1","2"]""", headers)
testRestTemplate.exchange("/v1/messages", HttpMethod.DELETE, body, String::class.java).also {
assertEquals(HttpStatus.OK, it.statusCode)
}
Digging a bit further, we found out that in spring-web:6.2.8this logic has been introduced, which eventually creates a DELETE request without a body: