diff --git a/src/main/java/org/elasticsearch/repositories/RepositoriesService.java b/src/main/java/org/elasticsearch/repositories/RepositoriesService.java index e88ff922d72..5f948a3fdec 100644 --- a/src/main/java/org/elasticsearch/repositories/RepositoriesService.java +++ b/src/main/java/org/elasticsearch/repositories/RepositoriesService.java @@ -191,6 +191,9 @@ public class RepositoriesService extends AbstractComponent implements ClusterSta return ClusterState.builder(currentState).metaData(mdBuilder).build(); } } + if (Regex.isMatchAllPattern(request.name)) { // we use a wildcard so we don't barf if it's not present. + return currentState; + } throw new RepositoryMissingException(request.name); }