Finishing all the test case support for ACL and other fixes

This commit is contained in:
Harshavardhana
2015-04-23 01:20:03 -07:00
parent de710962c0
commit e95604ff86
11 changed files with 556 additions and 292 deletions
+4
View File
@@ -19,6 +19,7 @@ package drivers
import (
"io"
"regexp"
"strings"
"time"
"unicode/utf8"
)
@@ -185,6 +186,9 @@ func IsValidBucket(bucket string) bool {
// IsValidObject - verify object name in accordance with
// - http://docs.aws.amazon.com/AmazonS3/latest/dev/UsingMetadata.html
func IsValidObject(object string) bool {
if strings.TrimSpace(object) == "" {
return true
}
if len(object) > 1024 || len(object) == 0 {
return false
}