web: Validate if bucket names are reserved (#3841)

Both '.minio.sys' and 'minio' should be never allowed
to be created from web-ui and then fail to list it
by filtering them out.

Fixes #3840
This commit is contained in:
Harshavardhana
2017-03-03 03:01:42 -08:00
committed by GitHub
parent cddc684559
commit e5d4e7aa9d
5 changed files with 43 additions and 8 deletions
+4
View File
@@ -50,3 +50,7 @@ var errServerVersionMismatch = errors.New("Server versions do not match")
// errServerTimeMismatch - server times are too far apart.
var errServerTimeMismatch = errors.New("Server times are too far apart")
// errReservedBucket - bucket name is reserved for Minio, usually
// returned for 'minio', '.minio.sys'
var errReservedBucket = errors.New("All access to this bucket is disabled")