-
Notifications
You must be signed in to change notification settings - Fork 257
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rgw/admin: fix getbucketpolicy api #886
Conversation
831ae65
to
cf26535
Compare
Following diff is shown as the root cause of CI failures: --- rgw/admin/bucket.go.orig
+++ rgw/admin/bucket.go
@@ -78,9 +78,9 @@
} `json:"acl"`
Owner struct {
ID struct {
- ID string `json:"id"`
+ ID string `json:"id"`
Tenant string `json:"tenant"`
- NS string `json:"ns"`
+ NS string `json:"ns"`
} `json:"id"`
DisplayName string `json:"display_name"`
} `json:"owner"` |
cf26535
to
d3485ac
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I realized that we are missing a test for GetBucketPolicy
. Can we add a very basic test to bucket_test.go? And while we are at it let's fix the following dead link from LINENO:116:
// GetBucketPolicy - http://docs.ceph.com/docs/mimic/radosgw/adminops/#get-bucket-or-object-policy
d3485ac
to
30e4fc2
Compare
dbcd55d
to
e2ae172
Compare
@Mergifyio rebase |
✅ Branch has been successfully rebased |
e2ae172
to
0e747f5
Compare
The request header in GetBucketPolicy(), was not passing policy in its header, so the response received Bucket than the actual policy. Signed-off-by: Jiffin Tony Thottan <[email protected]>
0e747f5
to
19749d2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code LGTM.
One test is failing but it appears to be due to trouble getting to the RPM repos on the ceph infra. I hope that retrying a few time will eventually resolve the issue.
The request header in GetBucketPolicy(), was not passing policy in its
header, so the response received Bucket than the actual policy.
fixes #882