From 0115e609190102443f6b125fe20a29491529a859 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Wed, 28 Jan 2026 14:41:15 -0800 Subject: [PATCH] s3tables: update bucket name validation message Remove "underscores" from error message to accurately reflect that bucket names only allow lowercase letters, numbers, and hyphens. --- weed/s3api/s3tables/handler_bucket_create.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/weed/s3api/s3tables/handler_bucket_create.go b/weed/s3api/s3tables/handler_bucket_create.go index 476aba125..eee627570 100644 --- a/weed/s3api/s3tables/handler_bucket_create.go +++ b/weed/s3api/s3tables/handler_bucket_create.go @@ -38,9 +38,9 @@ func (h *S3TablesHandler) handleCreateTableBucket(w http.ResponseWriter, r *http return fmt.Errorf("invalid bucket name length") } - // Validate bucket name characters [a-z0-9_-] + // Validate bucket name characters [a-z0-9-] if !isValidBucketName(req.Name) { - h.writeError(w, http.StatusBadRequest, ErrCodeInvalidRequest, "bucket name must contain only lowercase letters, numbers, hyphens, and underscores") + h.writeError(w, http.StatusBadRequest, ErrCodeInvalidRequest, "bucket name must contain only lowercase letters, numbers, and hyphens") return fmt.Errorf("invalid bucket name characters") }