Skip to content
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

Copying object onto itself with metadata fails #711

Open
arosu opened this issue Mar 8, 2024 · 0 comments
Open

Copying object onto itself with metadata fails #711

arosu opened this issue Mar 8, 2024 · 0 comments

Comments

@arosu
Copy link

arosu commented Mar 8, 2024

Running the following:

s5cmd cp --metadata "md5sum=xyz" s3://path/to/object s3://path/to/object

Fails with:

ERROR "cp s3://path/to/object s3://path/to/object": InvalidRequest: This copy request is illegal because it is trying to copy an object to itself without changing the object's metadata, storage class, website redirect location or encryption attributes. status code: 400, request id: abc, host id:

Even though I definitely am changing the object's metadata.

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

No branches or pull requests

1 participant