Skip to content

Conversation

@imabhichow
Copy link
Contributor

@imabhichow imabhichow commented Dec 22, 2025

The instruction files content length must be set correctly in the PutObjectRequest. This overwrites any previously set values and always uses the correct byte length for the content of the instruction file.

Issue #, if available:

Description of changes:

Resubmitted copy of #495 as CI can run

The issue was in InstructionFileConfig.java, when creating the instruction file's PutObjectRequest, the code copies all fields from the original request using toBuilder(), including the contentLength. This causes the instruction file to be uploaded with the wrong content length, leading to checksum validation failures.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Check any applicable:

  • Were any files moved? Moving files changes their URL, which breaks all hyperlinks to the files.

The instruction files content length must be set correctly in the PutObjectRequest. This overwrites any previously set values and always uses the correct byte length for the content of the instruction file.
@imabhichow imabhichow requested a review from a team as a code owner December 22, 2025 21:42
@imabhichow imabhichow closed this Dec 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants