Avoid path-cleaning policy resources for a better compliance with S3 (#2823)

This commit is contained in:
Anis Elleuch 2016-10-02 05:30:25 +01:00 committed by Harshavardhana
parent 83e6e1060e
commit b5a6dd1395

View File

@ -23,7 +23,6 @@ import (
"errors"
"fmt"
"io"
"path"
"sort"
"strings"
@ -224,7 +223,7 @@ func resourcePrefix(resource string) string {
if strings.HasSuffix(resource, "*") {
resource = strings.TrimSuffix(resource, "*")
}
return path.Clean(resource)
return resource
}
// checkBucketPolicyResources validates Resources in unmarshalled bucket policy structure.