Skip to content

Support version-aware copy sources#11

Open
Twest2 wants to merge 1 commit into
coollabsio:mainfrom
Twest2:fix/copy-source-version
Open

Support version-aware copy sources#11
Twest2 wants to merge 1 commit into
coollabsio:mainfrom
Twest2:fix/copy-source-version

Conversation

@Twest2

@Twest2 Twest2 commented Mar 29, 2026

Copy link
Copy Markdown
Contributor

Summary

  • parse optional versionId values from x-amz-copy-source
  • allow CopyObject and UploadPartCopy to read a specific source version
  • add regression coverage for version-aware copy behavior

Why

Copy requests treated /bucket/key?versionId=... as part of the object key, so copy operations could only read the latest object version.

Impact

CopyObject and UploadPartCopy can now target historical source versions in versioned buckets.

Validation

  • cargo test test_copy_object_specific_source_version -- --exact
  • cargo test test_upload_part_copy_specific_source_version -- --exact
  • cargo test copy_object
  • cargo test upload_part_copy

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