Skip to content

CompleteMultipartUpload response omits ChecksumType #47

Closed

Description

@Vonng

Expected Behavior

The CompleteMultipartUploadResult XML should carry <ChecksumType> when the object has a
checksum, as AWS S3 does. The
API reference
lists it in the response body with valid values COMPOSITE | FULL_OBJECT.

Current Behavior

The field does not exist on the response struct, so it is never emitted:

cmd/api-response.go

type CompleteMultipartUploadResponse struct {
	XMLName xml.Name `xml:"http://s3.amazonaws.com/doc/2006-03-01/ CompleteMultipartUploadResult" json:"-"`

	Location string
	Bucket   string
	Key      string
	ETag     string

	ChecksumCRC32     string `xml:"ChecksumCRC32,omitempty"`
	ChecksumCRC32C    string `xml:"ChecksumCRC32C,omitempty"`
	ChecksumSHA1      string `xml:"ChecksumSHA1,omitempty"`
	ChecksumSHA256    string `xml:"ChecksumSHA256,omitempty"`
	ChecksumCRC64NVME string `xml:",omitempty"`
}

generateCompleteMultipartUploadResponse already computes the map that contains it
(oi.decryptChecksums returns x-amz-checksum-type), it is simply dropped on the floor.

Observed with real boto3 1.43.58 against a FULL_OBJECT CRC32 upload:

complete_multipart_upload() -> ChecksumType: None          # AWS returns FULL_OBJECT
head_object()               -> ChecksumType: FULL_OBJECT   # correct

ListParts (api-response.go) and GetObjectAttributes (object-handlers.go) both return
the field correctly; only the completion response is missing it.

Impact

Presentation only - no data is affected. Clients that validate the returned checksum type
after completing an upload see a null value.

Context

Found while root-causing #31.

Activity

  1. added this to Siloand Siloon Aug 4, 2026
  2. Dansyuqri commented on Aug 9, 2026

    @Dansyuqri

    Hi @Vonng , I am looking into this -- adding the ChecksumType into the response struct. I am looking into the API reference, and noticed that there are other headers missing in the response struct as well like:

    Should these be included in another PR tagged to another issue?

  3. moved this from Backlog to In progress in Siloon Aug 9, 2026
  4. self-assigned this
    on Aug 25, 2026
  5. added
    enhancement
    on Aug 25, 2026
  6. added theissue type on Aug 25, 2026
  7. moved this from In progress to Done in Siloon Aug 26, 2026
  8. Vonng commented on Aug 26, 2026

    @Vonng
    MemberAuthor

    Resolved by #57 and merged as a96116b after the current-main PR checks passed. Thank you @Dansyuqri.

    For the additional SHA512/XXHASH/MD5 response elements: yes, please keep those in separate issues/PRs. They should only be added when the server supports each algorithm end to end across request validation, internal/hash, persistence, and all relevant response surfaces; adding XML fields alone would overstate compatibility.

    A real HTTP-level CompleteMultipartUpload regression test would also be welcome as a separate follow-up, but it was not required to resolve the missing ChecksumType mapping tracked here.

  9. added
    bug
    and removed
    enhancement
    on Sep 15, 2026
  10. changed the issue type fromtoon Sep 15, 2026
  11. added this to the 20260903 milestone on Sep 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

Projects

  • Status
    Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions