Skip to content
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

Buffer request even when buffering is disabled #771

Merged
merged 1 commit into from
Jan 21, 2024
Merged

Conversation

yawkat
Copy link
Member

@yawkat yawkat commented Jan 17, 2024

The jersey client only does not buffer if the content length is explicitly set: https://github.com/oracle/oci-java-sdk/blob/12fa54584f1e3c4e0ce5f50a1b82baa6cdeb6428/bmc-common-httpclient-choices/bmc-common-httpclient-jersey3/src/main/java/com/oracle/bmc/http/client/jersey3/Jersey3HttpRequest.java#L135

This PR duplicates that behavior. It should fix the ObjectStorage client when the content length is not explicitly set.

The jersey client only does *not* buffer if the content length is explicitly set: https://github.com/oracle/oci-java-sdk/blob/12fa54584f1e3c4e0ce5f50a1b82baa6cdeb6428/bmc-common-httpclient-choices/bmc-common-httpclient-jersey3/src/main/java/com/oracle/bmc/http/client/jersey3/Jersey3HttpRequest.java#L135

This PR duplicates that behavior. It should fix the ObjectStorage client when the content length is not explicitly set.
@yawkat yawkat added this to the 3.4.1 milestone Jan 17, 2024
@yawkat yawkat added the bug label Jan 17, 2024
Copy link

Quality Gate Passed Quality Gate passed

The SonarCloud Quality Gate passed, but some issues were introduced.

2 New issues
0 Security Hotspots
75.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud

@sdelamo sdelamo merged commit 9e7a4ac into master Jan 21, 2024
19 checks passed
@sdelamo sdelamo deleted the buffer-default branch January 21, 2024 17:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants