Skip to content

Hector test#9082

Closed
Hectorhammett wants to merge 14 commits intomainfrom
hector-test
Closed

Hector test#9082
Hectorhammett wants to merge 14 commits intomainfrom
hector-test

Conversation

@Hectorhammett
Copy link
Copy Markdown
Collaborator

No description provided.

Refactor Resumable, Streamable, and Multipart uploaders to ensure
integrity headers (X-Goog-Hash) are only attached to the request
when an upload is being finalized.

- In StreamableUploader, introduced `$isFinalRequest` to track
  intent before writeSize recalculations.
- In ResumableUploader, added a boundary check to only attach
  the hash when the current range matches the total file size.
- Aligns with GCS best practices for resumable upload integrity.
- Refactor Rest.php hash calculation to be more concise using
array_filter.
- Remove redundant array initializations in Rest.php by utilizing PHP
autovivification.
- Improve readability of X-Goog-Hash header generation.
Updates the minimum required version of cloud-core to ensure the
new checksum validation logic is available in all environments,
fixing the lowest-dependencies test failures.
@Hectorhammett Hectorhammett added the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Apr 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

do not merge Indicates a pull request not ready for merge, due to either quality or timing.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants