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

View File

@@ -417,7 +417,7 @@ func testGetDirectoryReturnsObjectNotFound(c *check.C, create func() ObjectLayer
_, err = obj.GetObject("bucket", "dir1/", 0)
switch err := err.(type) {
case ObjectNotFound:
case ObjectNameInvalid:
c.Assert(err.Bucket, check.Equals, "bucket")
c.Assert(err.Object, check.Equals, "dir1/")
default: