From 26e1535eeeb99cfc8bb0a39c2bc6e02d93970fff Mon Sep 17 00:00:00 2001 From: Adrien Grand Date: Mon, 11 Apr 2016 18:06:48 +0200 Subject: [PATCH] Fix compilation as a result of elastic/elasticsearchelastic/elasticsearch#16268. Original commit: elastic/x-pack-elasticsearch@4a334d7f7d6851290ff79df6ee5e90b8e66eed19 --- .../src/main/java/org/elasticsearch/shield/Security.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/elasticsearch/x-pack/shield/src/main/java/org/elasticsearch/shield/Security.java b/elasticsearch/x-pack/shield/src/main/java/org/elasticsearch/shield/Security.java index 81616cd005d..d17086b0ac2 100644 --- a/elasticsearch/x-pack/shield/src/main/java/org/elasticsearch/shield/Security.java +++ b/elasticsearch/x-pack/shield/src/main/java/org/elasticsearch/shield/Security.java @@ -258,12 +258,11 @@ public class Security { shieldLicenseState)); } if (transportClientMode == false) { - module.registerQueryCache(Security.OPT_OUT_QUERY_CACHE, OptOutQueryCache::new); /* We need to forcefully overwrite the query cache implementation to use Shield's opt out query cache implementation. * This impl. disabled the query cache if field level security is used for a particular request. If we wouldn't do * forcefully overwrite the query cache implementation then we leave the system vulnerable to leakages of data to * unauthorized users. */ - module.forceQueryCacheType(Security.OPT_OUT_QUERY_CACHE); + module.forceQueryCacheProvider(OptOutQueryCache::new); } }