0005-00000421

更新时间:
复制 MD 格式

Problem description

Metadata of a client-side encrypted object cannot be modified by a CopyObject request.

Causes

After you upload objects encrypted on the client side, the object metadata related to client-side encryption is protected and cannot be modified by initiating a CopyObject request.

Examples

You initiate a CopyObject request to modify the metadata of an object encrypted on the client side. For example, you add or update a custom metadata header while copying the object to itself. The request fails because OSS blocks metadata modification for client-side encrypted objects.

Solutions

Re-upload the object using client-side encryption. Because encryption parameters are set at upload time and cannot be changed afterward, re-uploading is the only way to update the object's metadata.

References