Say you accidentaly greated a bucket's with --acl-public but need it's root to be private so that anonymous users can not list the bucket's content
currently (0.99) you get:
$ s3cmd --acl-private setacl s3://example/
ERROR: Parameter problem: Expecting S3 URI with a filename or --recursive: s3://example/
The problem is in line 264
key = os.path.basename(uri.object())
key will be empty for slash so it is currently not possible to change the acl of a bucket's root after it has been created.
Hardcoding key = "/" as a test worked. So the rest of the code handles / just fine.
Log in to post a comment.