Implement a dummy GetBucketACL for legacy reasons (#5906)

GetBucketACL call returns empty for all GET in ACL requests, 
the primary purpose of this PR is to provide legacy API support 
for legacy applications.

Fixes #5706
This commit is contained in:
Harshavardhana
2018-05-09 21:02:26 -07:00
committed by Nitish Tiwari
parent 518f856900
commit 5b74f918d4
3 changed files with 154 additions and 0 deletions

View File

@@ -83,6 +83,10 @@ func registerAPIRouter(router *mux.Router) {
bucket.Methods("GET").HandlerFunc(httpTraceAll(api.GetBucketLocationHandler)).Queries("location", "")
// GetBucketPolicy
bucket.Methods("GET").HandlerFunc(httpTraceAll(api.GetBucketPolicyHandler)).Queries("policy", "")
// GetBucketACL -- this is a dummy call.
bucket.Methods("GET").HandlerFunc(httpTraceAll(api.GetBucketACLHandler)).Queries("acl", "")
// GetBucketNotification
bucket.Methods("GET").HandlerFunc(httpTraceAll(api.GetBucketNotificationHandler)).Queries("notification", "")
// ListenBucketNotification