From 7e78f935d66c41307af00dd569e602598e833031 Mon Sep 17 00:00:00 2001 From: luomeiqin Date: Thu, 11 May 2017 16:53:47 +0800 Subject: [PATCH 1/2] comments bucket name configration include hypen --- cmd/web-handlers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/web-handlers.go b/cmd/web-handlers.go index eff9f3b278600..140bc4d3a7c38 100644 --- a/cmd/web-handlers.go +++ b/cmd/web-handlers.go @@ -889,7 +889,7 @@ func toJSONError(err error, params ...string) (jerr *json2.Error) { case "InvalidBucketName": if len(params) > 0 { jerr = &json2.Error{ - Message: fmt.Sprintf("Bucket Name %s is invalid. Lowercase letters, period, numerals are the only allowed characters and should be minimum 3 characters in length.", params[0]), + Message: fmt.Sprintf("Bucket Name %s is invalid. Lowercase letters, period, hypen, numerals are the only allowed characters and should be minimum 3 characters in length.", params[0]), } } // Bucket not found custom error message. From 548748333fd6a47b9d8dfcbcebb190042fee2e02 Mon Sep 17 00:00:00 2001 From: luomeiqin Date: Fri, 19 May 2017 14:36:14 +0800 Subject: [PATCH 2/2] bucket name can contain hyphen --- cmd/web-handlers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/web-handlers.go b/cmd/web-handlers.go index 140bc4d3a7c38..16ef5d9322b9a 100644 --- a/cmd/web-handlers.go +++ b/cmd/web-handlers.go @@ -889,7 +889,7 @@ func toJSONError(err error, params ...string) (jerr *json2.Error) { case "InvalidBucketName": if len(params) > 0 { jerr = &json2.Error{ - Message: fmt.Sprintf("Bucket Name %s is invalid. Lowercase letters, period, hypen, numerals are the only allowed characters and should be minimum 3 characters in length.", params[0]), + Message: fmt.Sprintf("Bucket Name %s is invalid. Lowercase letters, period, hyphen, numerals are the only allowed characters and should be minimum 3 characters in length.", params[0]), } } // Bucket not found custom error message.