-
Notifications
You must be signed in to change notification settings - Fork 38.5k
JdkClientHttpRequestFactory
not compatible with BufferingClientHttpRequestFactory
in 6.1 M3
#31027
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
JdkClientHttpRequestFactory
not compatible with BufferingClientHttpRequestFactory
in 6.1 M3
The contract of So, in theory, Can you provide a minimal example that demonstrates the behavior you've described? Also, a complete stack trace would be helpful. |
Indeed, like @sbrannen said, spring-framework/spring-web/src/main/java/org/springframework/http/client/JdkClientHttpResponse.java Line 55 in cf75a09
|
If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed. |
Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue. |
In Spring Framework 6.1 M3, using
BufferingClientHttpRequestFactory
withJdkClientHttpRequestFactory
throws an exceptionjava.lang.IllegalArgumentException: non-positive contentLength: 0
.The issue seems to be from class
BufferingClientHttpResponseWrapper
, methodSince
BufferingClientHttpResponseWrapper
is notpublic
, I copied the class and was able to fix the issue withNot sure if this is a good fix but it works.
The text was updated successfully, but these errors were encountered: