RestTemplate with HttpComponentsClientHttpRequestFactory and no buffering with an interceptor throws UnsupportedOperationException [SPR-16582] #21124
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
status: backported
An issue that has been backported to maintenance branches
type: bug
A general bug
Milestone
Mark Jeffrey opened SPR-16582 and commented
When creating a RestTemplate with a HttpComponentsClientHttpRequestFactory with buffering disabled (to be able to stream) and an interceptor, the rest call fails with an UnsupportedOperationException.
This is a Testcase on github
I also reproduced this on Spring Boot 2.0.0.RELEASE.
Affects: 4.3.14, 5.0.4
Issue Links:
Referenced from: commits 4173022, 2cac3a8
Backported to: 4.3.15
The text was updated successfully, but these errors were encountered: