Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added regular expressions to validate table and container names #3

Closed
Aaronontheweb opened this issue Jun 30, 2018 · 1 comment
Closed

Comments

@Aaronontheweb
Copy link
Member

Help prevent the user from running into a runtime issue with Azure Table or Blob storage by validating the names of containers and tables before we fire up the plugin:

https://blogs.msdn.microsoft.com/jmstall/2014/06/12/azure-storage-naming-rules/

Tables

Name of the table
Table names must conform to these rules:

Table names must be unique within an account.
Table names may contain only alphanumeric characters.
Table names cannot begin with a numeric character.
Table names are case-insensitive.
Table names must be from 3 to 63 characters long.
Some table names are reserved, including "tables". Attempting to create a table with a reserved table name returns error code 404 (Bad Request).
These rules are also described by the regular expression "^[A-Za-z][A-Za-z0-9]{2,62}$".

Table names preserve the case with which they were created, but are case-insensitive when used.

Blobs

A container name must be a valid DNS name, conforming to the following naming rules:

Container names must start with a letter or number, and can contain only letters, numbers, and the dash (-) character.
Every dash (-) character must be immediately preceded and followed by a letter or number; consecutive dashes are not permitted in container names.
All letters in a container name must be lowercase.
Container names must be from 3 through 63 characters long.
@Aaronontheweb
Copy link
Member Author

closed via #21

IgorFedchenko pushed a commit to IgorFedchenko/Akka.Persistence.Azure that referenced this issue Jul 14, 2020
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

No branches or pull requests

1 participant