Bug #20218
closedrgw: some problem set bucket policy in master branch
0%
Description
i test set bucket policy in master branch ceph cluster, i test RGW Bucket Policies #14307 in my ceph cluster, but i still have some problem to set bucket policy,
when i set policy to rgw, and the rgw killed Immediately. and after merge https://github.com/ceph/ceph/pull/15498
i can set policy through s3cmd now,but when i get policy,
< GET /test6?policy HTTP/1.1
< Host: 127.0.0.1:8000
< Connection: keep-alive
< Accept-Encoding: gzip, deflate
< Accept: */*
< User-Agent: python-requests/2.17.3
< date: Wed, 07 Jun 2017 08:48:05 GMT
< Authorization: AWS yly:kj2KKmsfl9rcv5uI4kt8BFg74Ac=
<
HTTP/1.1 200 OK
x-amz-request-id: tx000000000000000000018-005937bdc5-3712-default
Content-Length: 222
Date: Wed, 07 Jun 2017 08:48:05 GMT
Connection: Keep-Alive
{
"Version": "2012-10-17",
"Statement": [{
"Effect": "Allow",
"Principal": "*",
"Action": "s3PutObjectAcl",
"Resource": [
"arn:aws:s3:::test6/*"
]
}]
}
[root@ms ~]# s3cmd -c s3cmd-local info s3://test6
s3://test6/ (bucket):
Location: us-east-1
Payer: BucketOwner
Expiration Rule: none
policy: {
"Version": "2012-10-17",
"Statement": [{
"Effect": "Allow",
"Principal": "*",
"Action": "s3PutObjectAcl",
"Resource": [
"arn:aws:s3:::test6/*"
]
}]
}
cors: none
ACL: yly: FULL_CONTROL
this a in front of my custom json bucket policy. and when i get object through webbrower
http://192.168.153.134:8000/test1/boto.pcap
it return
<Error>
<Code>NoSuchBucket</Code>
<BucketName>test1</BucketName>
<RequestId>tx000000000000000000023-0059389e30-100c-default</RequestId>
<HostId>100c-default-default</HostId>
</Error>
it is wrongly to return NoSuchBucket. because my request is to get object.
Updated by Yehuda Sadeh almost 7 years ago
- Subject changed from some problem set bucket policy in master branch to rgw: some problem set bucket policy in master branch
- Assignee set to Pritha Srivastava
Updated by joke lee almost 7 years ago
sorry, this is my problem,i use git apply to cherry pick some code, and after i reclone the code ,this no NoSuchBucket error any more, please close this one, thanks
Updated by Pritha Srivastava almost 7 years ago
- Status changed from New to Closed
Closed as per joke lee's comment.