mirror of
https://github.com/fsouza/fake-gcs-server.git
synced 2026-04-26 06:05:54 +03:00
[PR #330] [MERGED] Fix bucket name validation to allow underscores #525
Labels
No labels
bug
compatibility-issue
docker
documentation
enhancement
help wanted
needs information
pull-request
question
stale
unfortunate
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/fake-gcs-server#525
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/fsouza/fake-gcs-server/pull/330
Author: @gh2k
Created: 9/17/2020
Status: ✅ Merged
Merged: 9/17/2020
Merged by: @fsouza
Base:
main← Head:bucketname-regex📝 Commits (1)
e7c8391Fix bucket name validation to allow underscores📊 Changes
2 files changed (+11 additions, -5 deletions)
View changed files
📝
fakestorage/bucket.go(+1 -1)📝
fakestorage/bucket_test.go(+10 -4)📄 Description
According to Google's bucket naming guidelines underscores in bucket names are OK.
This patch updates the validation regex to more closely match the guidelines, by:
I haven't added the length checks, or for the
googprefix, so these can still be created erroneously - but this should fix downstream projects that have broken because of the incorrect name validation change.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.