- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for IsValidObjectPrefix (0.15 sec)
-
cmd/object-api-input-checks.go
return BucketNameInvalid{Bucket: bucket} } // Verify if object is valid. if len(object) == 0 { return ObjectNameInvalid{Bucket: bucket, Object: object} } if !IsValidObjectPrefix(object) { return ObjectNameInvalid{Bucket: bucket, Object: object} } if runtime.GOOS == globalWindowsOSName && strings.Contains(object, "\\") {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Apr 04 12:04:40 UTC 2024 - 5.7K bytes - Viewed (0) -
cmd/bucket-listobjects-handlers.go
} if encodingType != "" { // AWS S3 spec only supports 'url' encoding type if !strings.EqualFold(encodingType, "url") { return ErrInvalidEncodingMethod } } if !IsValidObjectPrefix(prefix) { return ErrInvalidObjectName } if marker != "" && !HasPrefix(marker, prefix) { return ErrNotImplemented } return ErrNone }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Jun 11 03:13:30 UTC 2024 - 11.4K bytes - Viewed (0) -
cmd/object-api-utils.go
if len(object) == 0 { return false } if HasSuffix(object, SlashSeparator) { return false } return IsValidObjectPrefix(object) } // IsValidObjectPrefix verifies whether the prefix is a valid object name. // Its valid to have a empty prefix. func IsValidObjectPrefix(object string) bool { if hasBadPathComponent(object) { return false } if !utf8.ValidString(object) { return false
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Aug 08 15:29:58 UTC 2024 - 37.1K bytes - Viewed (0) -
cmd/admin-handlers.go
err = ErrHealMissingBucket return } } else if isReservedOrInvalidBucket(hip.bucket, false) { err = ErrInvalidBucketName return } // empty prefix is valid. if !IsValidObjectPrefix(hip.objPrefix) { err = ErrInvalidObjectName return } if len(qParams[mgmtClientToken]) > 0 { hip.clientToken = qParams[mgmtClientToken][0] }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Oct 04 11:32:32 UTC 2024 - 99.7K bytes - Viewed (0)