From adc195e30c4e237372f168086f7a57b0c3b5e7f1 Mon Sep 17 00:00:00 2001 From: Nhat Date: Wed, 25 Oct 2017 18:54:40 -0400 Subject: [PATCH] Fix error message for a put index template request without index_patterns (#27102) Just correct the error message from "Validation Failed: 1: pattern is missing;" to "Validation Failed: 1: index_patterns is missing;". Closes #27100 --- .../template/put/PutIndexTemplateRequest.java | 2 +- .../put/PutIndexTemplateRequestTests.java | 23 +++++++++++++++++++ .../test/indices.put_template/10_basic.yml | 9 ++++++++ 3 files changed, 33 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/org/elasticsearch/action/admin/indices/template/put/PutIndexTemplateRequest.java b/core/src/main/java/org/elasticsearch/action/admin/indices/template/put/PutIndexTemplateRequest.java index 99ad163f48d..1553a528c57 100644 --- a/core/src/main/java/org/elasticsearch/action/admin/indices/template/put/PutIndexTemplateRequest.java +++ b/core/src/main/java/org/elasticsearch/action/admin/indices/template/put/PutIndexTemplateRequest.java @@ -104,7 +104,7 @@ public class PutIndexTemplateRequest extends MasterNodeRequest