Skip to content

Fix: allow dots in bucket name#1150

Merged
mpnowacki-reef merged 1 commit into
Backblaze:masterfrom
reef-technologies:dot-in-bucket-name
Jun 8, 2026
Merged

Fix: allow dots in bucket name#1150
mpnowacki-reef merged 1 commit into
Backblaze:masterfrom
reef-technologies:dot-in-bucket-name

Conversation

@agoncharov-reef

Copy link
Copy Markdown
Contributor

According to official documentation bucket names should allow dots (.). This PR adds dot to a list of allowed characters.

It's also important to mention that the current CLI implementation only restricts bucket name characters to [a-z0-9.-], while the actual rules are more restrictive (for example, bucket names cannot start or end with a dot or contain consecutive dots). However, we don't enforce any additional naming rules at the CLI level and instead allow the B2 API to perform the validation and return an error. This way, the bucket name rules are always up-to-date, and we don't need to update the CLI if the rules change on the API side.

@mpnowacki-reef mpnowacki-reef merged commit c8e30da into Backblaze:master Jun 8, 2026
31 checks passed
@mpnowacki-reef mpnowacki-reef deleted the dot-in-bucket-name branch June 8, 2026 09:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants