Description
raoofm opened SPR-17113 and commented
need to set Interceptors as empty, since InterceptingHttpAccessor.getRequestFactory returns InterceptingClientHttpRequestFactory which in turn makes an instance of InterceptingClientHttpRequest which does not extend StreamingHttpOutputMessage and AbstractHttpMessageConverter.write checks if (outputMessage instanceof StreamingHttpOutputMessage) { which will be false and ResourceHttpMessageConverter.writeInternal which calls outputMessage.getBody() where outputMessage is an instance of HTTPOutputMessage and not StreamingHttpOutputMessage, should return something like InterceptingStreamingClientHttpRequestFactory For now when we set empty Interceptors, returns the correct delegate (HttpComponentsClientHttpRequestFactory)
Issue Links:
- InterceptingClientHttpRequest is always buffered despite the delegate [SPR-16380] #20926 InterceptingClientHttpRequest is always buffered despite the delegate
- All HttpMessageConverters should support StreamingHttpOutputMessage [SPR-12715] #17312 All HttpMessageConverters should support StreamingHttpOutputMessage