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
If you have only GetObject permission for the source bucket contents then the s3p cp command fails with this error because it's trying to copy object tags:
An error occurred (AccessDenied) when calling the GetObjectTagging operation: Access Denied
I'm trying to figure out what the equivalent props are for the copyObject command in the SDK. I think it has to do with the metadata, metadataDirective, tagging and taggingDirective properties.
Do you know of any good doc for how --copy-props none translates into those four properties? I can't find any...
This is still an issue.
I made a local edit for myself: hmate9@9346b77
I could not find anything in the API documentation for no-props for the aws-sdk so instead I just use a try-catch and on error revert back to cli option with the --no-props flag. This is fine for my usecase as most files are copiable normally.
Just leaving it here in case someone needs it as inspiration to make a proper, clean pull request for this issue. I am unlikely to have the time anytime soon.
If you have only
GetObject
permission for the source bucket contents then thes3p cp
command fails with this error because it's trying to copy object tags:An error occurred (AccessDenied) when calling the GetObjectTagging operation: Access Denied
The aws cli has an option to avoid this problem using
aws s3 cp --copy-props none
. It would be nice to implement it in the same way here. Reference: https://awscli.amazonaws.com/v2/documentation/api/latest/reference/s3/cp.htmlAs an example, here is a public bucket which allows
GetObject
but blocks getting object tags.s3://download.opencontent.netflix.com
The text was updated successfully, but these errors were encountered: