You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When copying an object, Gateway-ST and MT currently copy over the metadata, but do not respect the x-amz-metadata-directive header being set to "REPLACE", which you can use to indicate that the metadata should be set to what was provided in the CopyObject request, instead of copying it from the original object.
It turns out this was slightly more complicated than originally anticipated, due to the interplay between metadata and tagging in the way we store the metadata. I've updated https://review.dev.storj.io/c/storj/gateway/+/5927 with latest work, but it needs tests.
When copying an object, Gateway-ST and MT currently copy over the metadata, but do not respect the
x-amz-metadata-directive
header being set to "REPLACE", which you can use to indicate that the metadata should be set to what was provided in the CopyObject request, instead of copying it from the original object.The default is copy metadata if no header is specified. See https://docs.aws.amazon.com/AmazonS3/latest/API/API_CopyObject.html
I put together a WIP: https://review.dev.storj.io/c/storj/gateway/+/5927
The text was updated successfully, but these errors were encountered: