Skip to content

feat: add ChecksumType to CompleteMultipartUpload response struct - #57

Merged
Vonng merged 2 commits into
pgsty:mainfrom
Dansyuqri:feat-add-checksumtype-completemultipartupload-response
Aug 26, 2026
Merged

Vonng merged 2 commits into
pgsty:mainfrom
Dansyuqri:feat-add-checksumtype-completemultipartupload-response

Conversation

@Dansyuqri

Copy link
Copy Markdown

Contribution Licensing (no CLA, inbound=outbound, DCO required)

This project does not use a CLA; contributions are accepted inbound=outbound.
By submitting this pull request I represent that I have the right to contribute
the changes, which are licensed under this repository's
GNU Affero General Public License v3.0 or later
and remain my copyright. Every commit must carry a DCO Signed-off-by trailer
(git commit -s) certifying the
Developer Certificate of Origin — see
CONTRIBUTING.md.

Description

Add the ChecksumType field in the CompleteMultipartUploadResponse struct

Motivation and Context

Resolves #47

How to test this PR?

make test passes

Compatibility impact

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Optimization (provides speedup with no functional changes)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • All commits are signed off (git commit -s) per the DCO
  • Fixes a regression (If yes, please add commit-id or PR # here)
  • Unit tests added/updated
  • make verifiers passes
  • Relevant package tests and make build pass
  • Compatibility and rollback impact documented
  • Internal documentation updated
  • Public documentation update opened in pgsty/silo.pgsty.com, if needed

@Vonng Vonng left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed against current main at c4b9d38.

The production change is minimal and correct: decryptChecksums supplies x-amz-checksum-type only when a stored checksum is present, the XML field is omitted when empty, the compatibility baseline is updated, and the regression test covers FULL_OBJECT, COMPOSITE, and no-checksum behavior.

Local validation passed:

  • targeted ChecksumType regression test
  • full cmd package test suite
  • rebrand compatibility guard
  • git diff --check

An HTTP-level CompleteMultipartUpload test would be a useful follow-up, but I do not consider it blocking here: the handler delegates directly to the tested response generator, while existing real multipart-upload tests cover the persisted FULL_OBJECT/COMPOSITE checksum representations.

The additional SHA512/XXHASH/MD5 algorithms mentioned on #47 are out of scope for this fix; they should be tracked separately if/when the server's hash/storage layer supports them.

@Vonng
Vonng merged commit a96116b into pgsty:main Aug 26, 2026
9 checks passed
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.

CompleteMultipartUpload response omits ChecksumType

2 participants