-
Notifications
You must be signed in to change notification settings - Fork 637
Description
Expected behaviour
No error while doing
./mc policy public service/bucket --insecure
on jewels and luminous Rados Gateway
Actual behaviour
On jewels :
mc: Unable to set policy public for service/bucket. invalid character '<' looking for beginning of value
=> ACL is NOT modified
On luminous :
mc: Unable to set policy public for service/bucket. 200 OK
=> ACL is modified even with this error message
#./mc --insecure policy service/bucket
Access permission for service/bucket is public
Steps to reproduce the behaviour
EP=https://myserver
BUCKET=mybucket
EPMCNICKNAME=mybucketnickname
EP=https://myserver
mc rm --recursive --force --insecure $EPMCNICKNAME/$BUCKET
mc mb $EPMCNICKNAME/$BUCKET --insecure
mc policy $EPMCNICKNAME/$BUCKET --insecure # Get bucket policy
mc cp test123.html $EPMCNICKNAME/$BUCKET --insecure
curl -k $EP/$BUCKET/test123.html
mc policy public $EPMCNICKNAME/$BUCKET --insecure # Set bucket policy
mc policy $EPMCNICKNAME/$BUCKET --insecure # Get bucket policy
curl -k $EP/$BUCKET/test123.html
Output:
./s3lab.sh
Removing myepnickname/mybucket/test123.html.
Removing myepnickname/mybucket.
Bucket created successfully myepnickname/mybucket.
Access permission for myepnickname/mybucket is none
test123.html: 17 B / 17 B ?¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦? 100.00% 596 B/s 0s
AccessDeniedmybuckettx0000000000000000001c9-005a85a63a-377b-default377b-default-default
mc: Unable to set policy public for myepnickname/mybucket. 200 OK
Access permission for myepnickname/mybucket is public
test123
==> File test123.html is downloaded without authentication ! OK./mc version
Version: 2018-02-09T23:07:36Z
Release-tag: RELEASE.2018-02-09T23-07-36Z
Commit-id: 3987f14
System information
Centos 7.4