Upstream versity/versitygw state of the touched files before 5128cc1624

This commit is contained in:
upstream committed 2026-10-07 19:38:54 +02:00
1 parent 8271bea5c1
commit 09e1b65724
5 files changed
+2587 -2

No files matched your search

+17
View File
@@ -74,9 +74,14 @@ const (
InvalidArgSSEInvalidEncryptionMethod
InvalidArgSSECRequiresTLS
InvalidArgUploadIdWithUploads
InvalidArgBucketRegionEndpoint
)
var invalidArgErrResponses = map[InvalidArgErrorCode]InvalidArgumentError{
InvalidArgBucketRegionEndpoint: {
Description: "Requests with bucket-region specified must be made to the corresponding regional endpoint",
ArgumentName: "bucket-region",
},
InvalidArgMaxBuckets: {
Description: "Argument max-buckets must be an integer between 1 and 10000.",
ArgumentName: "max-buckets",
@@ -384,3 +389,15 @@ func GetInvalidArgObjectOwnership(value string) InvalidArgumentError {
Description: fmt.Sprintf("Invalid x-amz-object-ownership header: %s", value),
}
}
func GetInvalidArgBucketRegion(value string) InvalidArgumentError {
description := fmt.Sprintf("Argument value %s is not a valid AWS Region", value)
if value == "" {
description = "Argument value is not a valid AWS Region"
}
return InvalidArgumentError{
ArgumentName: "bucket-region",
// no ArgumentValue is returned for this error
Description: description,
}
}