acl: Support PUT calls with success for 'private' ACL's (#9000)
Add dummy calls which respond success when ACL's are set to be private and fails, if user tries to change them from their default 'private' Some applications such as nuxeo may have an unnecessary requirement for this operation, we support this anyways such that don't have to fully implement the functionality just that we can respond with success for default ACLs
This commit is contained in:
@@ -1803,16 +1803,6 @@ func (s *TestSuiteCommon) TestPutBucketErrors(c *check) {
|
||||
c.Assert(err, nil)
|
||||
verifyError(c, response, "BucketAlreadyOwnedByYou", "Your previous request to create the named bucket succeeded and you already own it.",
|
||||
http.StatusConflict)
|
||||
|
||||
// request for ACL.
|
||||
// Since MinIO server doesn't support ACL's the request is expected to fail with "NotImplemented" error message.
|
||||
request, err = newTestSignedRequest("PUT", s.endPoint+SlashSeparator+bucketName+"?acl",
|
||||
0, nil, s.accessKey, s.secretKey, s.signer)
|
||||
c.Assert(err, nil)
|
||||
|
||||
response, err = client.Do(request)
|
||||
c.Assert(err, nil)
|
||||
verifyError(c, response, "NotImplemented", "A header you provided implies functionality that is not implemented", http.StatusNotImplemented)
|
||||
}
|
||||
|
||||
func (s *TestSuiteCommon) TestGetObjectLarge10MiB(c *check) {
|
||||
|
||||
Reference in New Issue
Block a user