ILM allows a policy name that generates invalid snapshot name #95593
Labels
>bug
:Data Management/ILM+SLM
Index and Snapshot lifecycle management
Team:Data Management
Meta label for data/management team
We allow characters in the ID of an ILM policy that will result in an invalid snapshot name.
For example, an ILM policy with the name
mypolicy-*
can be created, however, the generation of the snapshot name in this line:elasticsearch/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ilm/GenerateSnapshotNameStep.java
Line 81 in befb6fa
Results in the
mypolicy-*
being part of the snapshot name, which the snapshot service then disallows. We should strip these invalid characters from the snapshot name.The text was updated successfully, but these errors were encountered: