Skip to content

Conversation

@kdaily
Copy link
Member

@kdaily kdaily commented Dec 10, 2025

Issue #, if available:

Description of changes:

This PR is merging to the s3-no-overwrite feature branch.

Now that AWS S3 supports the IfNoneMatch header on CopyObject operations, we no longer need the more complicated solution that forces multipart upload copies for all copy and move operations. Additionally, we don't need to have a special case for 0-byte object. This PR rolls back some of the changes already added and goes back to allowing IfNoneMatch header to go to CopyObject operations.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@kdaily kdaily force-pushed the nooverwrite-copyobject-with-ifnonematch branch from 6183e9e to a61aa8e Compare December 12, 2025 17:29
This commit rolls back changes made to force multipart copies if no
overwrite is specified. This includes checking for 0-length files.
It  also removes the CopyObject argument block list, since IfNoneMatch
is now allowed and was the only argument in the list.
Removes the tests for 0 length files and moves some tests to the
TestNonMultipartCopy class, since CopyObject accepts IfNoneMatch and no
longer needs to force multipart copying.
Update the tests to account for different operations being called, since multipart upload is now not necessary.
@kdaily kdaily force-pushed the nooverwrite-copyobject-with-ifnonematch branch from a61aa8e to 5dce4bc Compare December 12, 2025 17:31
The IfNoneMatch header is set on the CopyObject request
@kdaily kdaily requested a review from a team December 12, 2025 20:51
@kdaily kdaily marked this pull request as ready for review December 12, 2025 20:51
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