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
Create object A using PutObject with "Content-Disposition" set to ""
Call CopyObject with src and dst pointing to object A, metadata directive set to "REPLACE" and "Content-Disposition" set to "attachment"
Result: operation error S3: CopyObject, https response error StatusCode: 400, RequestID: , HostID: , api error 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.
Expected:
The object should be updated in place with the new "Content-Disposition" value
The text was updated successfully, but these errors were encountered:
The headers we store as "storeHeaders" are part of the
"System-defined object metadata" which can be the only metadata
overwritten when copying objects.
Fixes#2005
Repro steps:
PutObject
with "Content-Disposition" set to ""CopyObject
with src and dst pointing to object A, metadata directive set to "REPLACE" and "Content-Disposition" set to "attachment"Result:
operation error S3: CopyObject, https response error StatusCode: 400, RequestID: , HostID: , api error 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.
Expected:
The object should be updated in place with the new "Content-Disposition" value
The text was updated successfully, but these errors were encountered: