bucket-policy parset tests, and bug fixes (#1317)

This commit is contained in:
karthic rao
2016-04-16 06:53:19 +05:30
committed by Harshavardhana
parent 6b3fc03701
commit 188bb92d8a
4 changed files with 696 additions and 38 deletions

View File

@@ -177,7 +177,7 @@ func (api objectStorageAPI) PutBucketPolicyHandler(w http.ResponseWriter, r *htt
}
// Parse check bucket policy.
if s3Error := checkBucketPolicy(bucket, bucketPolicy); s3Error != ErrNone {
if s3Error := checkBucketPolicyResources(bucket, bucketPolicy); s3Error != ErrNone {
writeErrorResponse(w, r, s3Error, r.URL.Path)
return
}