|
|
@ -42,7 +42,7 @@ func enforceBucketPolicy(bucket string, action string, reqURL *url.URL) (s3Error |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// Construct resource in 'arn:aws:s3:::examplebucket/object' format.
|
|
|
|
// Construct resource in 'arn:aws:s3:::examplebucket/object' format.
|
|
|
|
resource := AWSResourcePrefix + strings.TrimPrefix(reqURL.Path, "/") |
|
|
|
resource := AWSResourcePrefix + strings.TrimSuffix(strings.TrimPrefix(reqURL.Path, "/"), "/") |
|
|
|
|
|
|
|
|
|
|
|
// Get conditions for policy verification.
|
|
|
|
// Get conditions for policy verification.
|
|
|
|
conditionKeyMap := make(map[string]set.StringSet) |
|
|
|
conditionKeyMap := make(map[string]set.StringSet) |
|
|
|