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
deftest_object_copy_canned_acl():
bucket_name=get_new_bucket()
client=get_client()
alt_client=get_alt_client()
client.put_object(Bucket=bucket_name, Key='foo123bar', Body='foo')
copy_source= {'Bucket': bucket_name, 'Key': 'foo123bar'}
client.copy_object(Bucket=bucket_name, CopySource=copy_source, Key='bar321foo', ACL='public-read')
## check ACL is applied by doing GET from another useralt_client.get_object(Bucket=bucket_name, Key='bar321foo') # <- FAILED HEREmetadata={'abc': 'def'}
copy_source= {'Bucket': bucket_name, 'Key': 'bar321foo'}
client.copy_object(ACL='public-read', Bucket=bucket_name, CopySource=copy_source, Key='foo123bar', Metadata=metadata, MetadataDirective='REPLACE')
# check ACL is applied by doing GET from another useralt_client.get_object(Bucket=bucket_name, Key='foo123bar')
ACL is not processed during object copying, therefore alt client fails with
layer/object.go:710 error was transformed {"request_id": "46f7588e-02a7-47ff-94ff-6d26354983bd", "error": "access denied: access to operation SEARCH is denied by extended ACL check: bearer token is not signed by the container owner"}
handler/util.go:25 could not find object {"request_id": "46f7588e-02a7-47ff-94ff-6d26354983bd", "method": "GetObject", "bucket_name": "yournamehere-sdcore7ma75qo04d-1", "object_name": "bar321foo", "error": "AccessDenied: 403 => Access Denied."}
The text was updated successfully, but these errors were encountered:
Probably we need to wait for SDK update, because it will have a token method to check if container ID is related to the token. Based on this method, we can decide whether we attach bearer token or not.
This test sets canned ACL to the object.
ACL is not processed during object copying, therefore alt client fails with
The text was updated successfully, but these errors were encountered: