Resource matching fix to overcome issues with regular expression based match (#1476)

This commit is contained in:
karthic rao
2016-05-05 05:26:57 +05:30
committed by Harshavardhana
parent a5959789d5
commit 82113b747c
3 changed files with 113 additions and 7 deletions
+1 -1
View File
@@ -54,7 +54,7 @@ func enforceBucketPolicy(action string, bucket string, reqURL *url.URL) (s3Error
return ErrAccessDenied
}
// Construct resource in 'arn:aws:s3:::examplebucket' format.
// Construct resource in 'arn:aws:s3:::examplebucket/object' format.
resource := AWSResourcePrefix + strings.TrimPrefix(reqURL.Path, "/")
// Get conditions for policy verification.