Skip to content

fix: copy object missing prefix on metadata delete #789

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 9, 2024

Conversation

benmcclelland
Copy link
Member

When using the REPLACE directive, we were incorrectly removing the old metadata on the object due to missing the metadata prefix on the key. Fix this to remove the correct metadata before setting new metadata.

Fixes #787

@benmcclelland benmcclelland force-pushed the ben/copy_obj_meta branch 3 times, most recently from 3386e7c to fb417e0 Compare September 7, 2024 19:40
When using the REPLACE directive, we were incorrectly removing the
old metadata on the object due to missing the metadata prefix on
the key.  Fix this to remove the correct metadata before setting
new metadata.

Fixes #787
@benmcclelland benmcclelland merged commit e4bc3d5 into main Sep 9, 2024
14 checks passed
@benmcclelland benmcclelland deleted the ben/copy_obj_meta branch September 9, 2024 15:16
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.

s3api copy-object with --metadata-directive REPLACE appends the metadata instead of replacing it
2 participants