You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
This commit changes the validation for V2 index and component templates to re-use the same
validation that V1 templates used. This includes things like invalid template names, index patterns,
etc.
This also adds validation that template names do not contain `*` and index patterns do not contain
`:` (index names can't contain this regardless).
Supercedes #53970
Relates to #53101Resolves#43737Resolves#46045
dakrone
added a commit
to dakrone/elasticsearch
that referenced
this issue
May 5, 2020
This commit changes the validation for V2 index and component templates to re-use the same
validation that V1 templates used. This includes things like invalid template names, index patterns,
etc.
This also adds validation that template names do not contain `*` and index patterns do not contain
`:` (index names can't contain this regardless).
Supercedes elastic#53970
Relates to elastic#53101Resolveselastic#43737Resolveselastic#46045
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
The text was updated successfully, but these errors were encountered: