Elasticsearch version (bin/elasticsearch --version): Affect all versions currently
Description of the problem including expected versus actual behavior:
It is possible to create a new template with a wildcard in the name. My expectation is that this should be prevented, because it leads to difficulty deleting the template individually.
Steps to reproduce:
- Run:
DELETE _template/test-*
- Run
GET _template/test-*
- Observe there is no template named "test-*"
- Run:
PUT _template/test-*
{
"order" : 10,
"index_patterns" : ["test-*"]
}
- Run:
PUT _template/test-inner-*
{
"order" : 10,
"index_patterns" : ["test-inner-*"]
}
- Run
GET _template/test-*
- Observe that there is a template named "test-" and "test-inner-"
- Run
DELETE _template/test-*
- Run
GET _template/test-*
- Observe that both "test-" and "test-inner-" are no longer present
This behaviour is verified on 6.6.2 and 6.7.0 and 7.6.1
Elasticsearch version (
bin/elasticsearch --version): Affect all versions currentlyDescription of the problem including expected versus actual behavior:
It is possible to create a new template with a wildcard in the name. My expectation is that this should be prevented, because it leads to difficulty deleting the template individually.
Steps to reproduce:
DELETE _template/test-*GET _template/test-*GET _template/test-*DELETE _template/test-*GET _template/test-*This behaviour is verified on 6.6.2 and 6.7.0 and 7.6.1