ContentCachingRequestWrapper cache input stream [SPR-16028] #20577
Labels
status: declined
A suggestion or change that we don't feel we should currently apply
type: enhancement
A general enhancement
Federico Piazza opened SPR-16028 and commented
This ticket comes from an issue I raised in spring boot github:
spring-projects/spring-boot#10452
The class ContentCachingRequestWrapper caches requests but by consuming the input stream, so this is a hard price that pays other filters in the filter chain that cannot read the input stream anymore making this class not very useful.
This issue is created to either improve ContentCachingRequestWrapper or create another wrapper that support multi read request through the filter chain multiple times. Here you can find a stack overflow answer that implements this:
https://stackoverflow.com/questions/10210645/http-servlet-request-lose-params-from-post-body-after-read-it-once
No further details from SPR-16028
The text was updated successfully, but these errors were encountered: