Skip to content

Copying object onto itself with metadata fails #711

@arosu

Description

@arosu

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions