From 88e389dd2eca90b225afb037f4a9b0a2e2746a70 Mon Sep 17 00:00:00 2001 From: David Pilato Date: Mon, 31 Aug 2015 11:19:11 +0200 Subject: [PATCH] [typo] LICESE_EXPIRATION_ACTION_MATCHER should be LICENSE_... Original commit: elastic/x-pack-elasticsearch@1e91087de71358a6afff25d3271f85a9d7b13c6e --- .../org/elasticsearch/shield/action/ShieldActionFilter.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shield/src/main/java/org/elasticsearch/shield/action/ShieldActionFilter.java b/shield/src/main/java/org/elasticsearch/shield/action/ShieldActionFilter.java index b386d8c487f..8bb2ac020b0 100644 --- a/shield/src/main/java/org/elasticsearch/shield/action/ShieldActionFilter.java +++ b/shield/src/main/java/org/elasticsearch/shield/action/ShieldActionFilter.java @@ -38,7 +38,7 @@ import static org.elasticsearch.shield.support.Exceptions.authorizationError; */ public class ShieldActionFilter extends AbstractComponent implements ActionFilter { - private static final Predicate LICESE_EXPIRATION_ACTION_MATCHER = Privilege.HEALTH_AND_STATS.predicate(); + private static final Predicate LICENSE_EXPIRATION_ACTION_MATCHER = Privilege.HEALTH_AND_STATS.predicate(); private final AuthenticationService authcService; private final AuthorizationService authzService; @@ -79,7 +79,7 @@ public class ShieldActionFilter extends AbstractComponent implements ActionFilte A functional requirement - when the license of shield is disabled (invalid/expires), shield will continue to operate normally, except all read operations will be blocked. */ - if (!licenseEnabled && LICESE_EXPIRATION_ACTION_MATCHER.apply(action)) { + if (!licenseEnabled && LICENSE_EXPIRATION_ACTION_MATCHER.apply(action)) { logger.error("blocking [{}] operation due to expired license. Cluster health, cluster stats and indices stats \n" + "operations are blocked on shield license expiration. All data operations (read and write) continue to work. \n" + "If you have a new license, please update it. Otherwise, please reach out to your support contact.", action);