From 81970a564f44fe5b90ba6aa9775ede0e00d5d93b Mon Sep 17 00:00:00 2001 From: Nik Everett Date: Fri, 25 Sep 2015 10:16:34 -0400 Subject: [PATCH] Fix Set->String conversion Original commit: elastic/x-pack-elasticsearch@c34f2d252d9aaf501eb85cc07fd013b46d87550a --- .../org/elasticsearch/shield/audit/index/IndexAuditTrail.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shield/src/main/java/org/elasticsearch/shield/audit/index/IndexAuditTrail.java b/shield/src/main/java/org/elasticsearch/shield/audit/index/IndexAuditTrail.java index 27f9bc3396b..67196f549f5 100644 --- a/shield/src/main/java/org/elasticsearch/shield/audit/index/IndexAuditTrail.java +++ b/shield/src/main/java/org/elasticsearch/shield/audit/index/IndexAuditTrail.java @@ -739,7 +739,7 @@ public class IndexAuditTrail extends AbstractComponent implements AuditTrail, Cl Settings.Builder builder = Settings.builder(); for (Map.Entry entry : newSettings.getAsMap().entrySet()) { String name = "index." + entry.getKey(); - if (FORBIDDEN_INDEX_SETTING.contains(name)) { + if (FORBIDDEN_INDEX_SETTING.equals(name)) { logger.warn("overriding the default [{}} setting is forbidden. ignoring...", name); continue; }