Fix R2 Java SDK chunked encoding docs#28116
Merged
elithrar merged 1 commit intoproductionfrom Feb 6, 2026
Merged
Conversation
Co-authored-by: elithrar <elithrar@users.noreply.github.com>
Contributor
|
This pull request requires reviews from CODEOWNERS as it changes files that match the following patterns:
|
Contributor
|
Preview URL: https://b157a39a.preview.developers.cloudflare.com Files with changes (up to 15)
|
elithrar
approved these changes
Feb 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The
:::notesyntax is correct and consistent with other files in the R2 docs. The changes look complete and consistent.Here's a summary of the changes made to
src/content/docs/r2/examples/aws/aws-sdk-java.mdx:Added a
:::notecallout explaining thatchunkedEncodingEnabled(false)is required in theS3Configuration. Without this,putObjectrequests fail with an HTTP 403 signature mismatch error because R2 doesn't support AWS chunked transfer encoding for request signing.Added
.chunkedEncodingEnabled(false)to theS3Configuration.builder()in thebuildS3Clientmethod (line 78).Added
RequestBodyimport (software.amazon.awssdk.core.sync.RequestBody) needed for theputObjectexample.Added a
putObjectmethod (lines 115-129) demonstrating how to upload objects to an R2 bucket usingPutObjectRequestandRequestBody.fromString().Added a
putObjectcall inmain(lines 146-149) showing the upload in action before listing objects, so users can see a complete working flow.Closes #27054
github run