Skip to content

fix: reject composite CRC64NVME checksums - #93

Merged
Vonng merged 3 commits into
mainfrom
codex/issue-50-after-checksum-contract
Aug 29, 2026
Merged

Vonng merged 3 commits into
mainfrom
codex/issue-50-after-checksum-contract

Conversation

@Vonng

@Vonng Vonng commented Aug 29, 2026

Copy link
Copy Markdown
Member

Summary

  • reject CRC64NVME plus COMPOSITE at multipart initiation
  • reject the same assertion on PutObject
  • preserve valid CRC64NVME FULL_OBJECT and absent-type behavior

Dependency

Stacked on the unsupported-checksum contract PR to keep checksum parsing changes reviewable.

Validation

  • internal checksum type tests
  • PutObject and multipart handler tests on both backends
  • focused normal/race and go vet

Refs #50.

Return InvalidArgument for CRC64NVME with COMPOSITE at multipart initiation and PutObject instead of silently canonicalizing the request to FULL_OBJECT.

Signed-off-by: Feng Ruohang <[email protected]>
Apply the full-object-only rule to declared streaming checksum trailers and cover the HTTP mutation path.

Signed-off-by: Feng Ruohang <[email protected]>
@Vonng
Vonng changed the base branch from codex/reject-unsupported-checksums to main August 29, 2026 11:26
…checksum-contract

# Conflicts:
#	cmd/erasure-multipart-fullobject_test.go
@Vonng
Vonng merged commit bc7658f into main Aug 29, 2026
8 checks passed
@Vonng
Vonng deleted the codex/issue-50-after-checksum-contract branch September 2, 2026 15:06
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.

1 participant