Closed
Description
Affects: spring-webmvc-5.3.20 and possibly many more
When having trace logging enabled... e.g.
logging:
level:
org.springframework.web: TRACE
and sending a POST request with content type application/x-www-form-urlencoded, the body of the request may be consumed by trace logging and only an empty stream or reader be available for the application.
The reason seems to be this line: https://github.com/spring-projects/spring-framework/blob/main/spring-webmvc/src/main/java/org/springframework/web/servlet/DispatcherServlet.java#L988
Even though it only attempts to check for existence of parameters it also triggers parsing of parameters which seems to consume the request body.