Skip to content

_ is a forbidden character for container (repository) #21

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

Closed
dadoonet opened this issue Jul 18, 2014 · 2 comments
Closed

_ is a forbidden character for container (repository) #21

dadoonet opened this issue Jul 18, 2014 · 2 comments

Comments

@dadoonet
Copy link
Member

According to Containers naming guide:

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.

We need to fix the documentation and control that before calling Azure API.

@dadoonet dadoonet modified the milestones: 2.4.0, 2.3.0 Jul 18, 2014
@dadoonet dadoonet added 2.4.0 and removed 2.3.0 labels Jul 18, 2014
@dadoonet dadoonet modified the milestones: 2.4.0, 2.3.0 Jul 18, 2014
@imotov
Copy link

imotov commented Jul 29, 2014

@dadoonet the documentation fix is good, but I think we should either move snapshot name validation from SnapshotService to the repository level and make it possible to override snapshot validation rules by repository implementation or we can try to escape the snapshot name when creating the snapshot. I would prefer the former solution even though it is more involving.

@dadoonet
Copy link
Member Author

@imotov agreed. Having a new method which actually let every repository plugin validate the repository settings would be nice for the future. Something like:

void validateRepositorySettings() throws RepositoryException;

At the moment, I suggest that I first update the documentation.

Wondering when this new feature should come? Within elasticsearch 2.0? Having that in 1.4 will break the plugin compatibility (not a big deal though as I update plugins for every elasticsearch major release).

@dadoonet dadoonet changed the title _ is a forbidden character for snapshots _ is a forbidden character for container (repository) Jul 30, 2014
dadoonet added a commit that referenced this issue Jul 30, 2014
According to [Containers naming guide](http://msdn.microsoft.com/en-us/library/dd135715.aspx):

> 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.

We need to fix the documentation and control that before calling Azure API.
The validation will come with issue #27.

Closes #21.
@dadoonet dadoonet added test and removed update labels Aug 1, 2014
dadoonet added a commit that referenced this issue Nov 12, 2014
dadoonet added a commit that referenced this issue Nov 12, 2014
See #21.

(cherry picked from commit 6aec0a0)
dadoonet added a commit that referenced this issue Nov 12, 2014
See #21.

(cherry picked from commit 6aec0a0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants