Project

General

Profile

Bug #20247

get bucket policy return wrong format result

Added by joke lee almost 7 years ago. Updated almost 7 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
-
% Done:

90%

Source:
Community (dev)
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

hi, when i get bucket policy of bucket test3

< GET /test3?policy HTTP/1.1
< Host: 127.0.0.1:8000
< Accept-Encoding: gzip, deflate
< Accept: /
< User-Agent: python-requests/2.6.0 CPython/2.7.5 Linux/3.10.0-514.16.1.el7.x86_64
< Connection: keep-alive
< date: Thu, 08 Jun 2017 07:09:29 GMT
< Authorization: AWS yly:38QIA0Gv2lHAhHVAbNWAhcvVWdA=
<
> HTTP/1.1 200 OK
> date: Thu, 08 Jun 2017 07:09:29 GMT
> content-length: 330
> x-amz-request-id: tx000000000000000000022-005938f829-100c-default
> connection: Keep-Alive
>
<?xml version="1.0" encoding="UTF-8"?>{
"Version": "2012-10-17",
"Statement": [{
"Effect": "Allow",
"Principal": "*",
"Action": "s3:GetObject",
"Resource": [
"arn:aws:s3:::test3/*" 
],
"Condition": {
"StringLike": { "aws:Referer": "http://www.baidu.com" }
}
}]
}

this a xml ahead of json format bucket policy

https://github.com/ceph/ceph/pull/15586 fix this problem

History

#2 Updated by Orit Wasserman almost 7 years ago

  • Status changed from New to Fix Under Review

#3 Updated by Adam Emerson almost 7 years ago

  • Assignee set to Adam Emerson
  • % Done changed from 0 to 90
  • Source set to Community (dev)

#4 Updated by Casey Bodley almost 7 years ago

  • Status changed from Fix Under Review to Resolved

Also available in: Atom PDF