Validation: Reject object names with trailing "/". (#1619)

Fixes #1616
This commit is contained in:
Krishna Srinivas
2016-05-14 00:13:06 +05:30
committed by Harshavardhana
parent 43539a0c86
commit d267696110
3 changed files with 24 additions and 14 deletions
+2
View File
@@ -90,6 +90,8 @@ func TestIsValidObjectName(t *testing.T) {
// cases for which test should fail.
// passing invalid object names.
{"", false},
{"a/b/c/", false},
{"/a/b/c", false},
{string([]byte{0xff, 0xfe, 0xfd}), false},
}