From 12b46bdbc43c238debd8b8093fe821b7e3bff273 Mon Sep 17 00:00:00 2001 From: Jason Tedor Date: Wed, 12 Apr 2017 22:23:42 -0400 Subject: [PATCH] Remove more hidden file leniency from plugins This commit removes one more instance of leniency from the plugin service which skips hidden files in the plugins directory. Relates #23982 --- .../main/java/org/elasticsearch/plugins/PluginsService.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/core/src/main/java/org/elasticsearch/plugins/PluginsService.java b/core/src/main/java/org/elasticsearch/plugins/PluginsService.java index 09f78d36b2b..874c338ff89 100644 --- a/core/src/main/java/org/elasticsearch/plugins/PluginsService.java +++ b/core/src/main/java/org/elasticsearch/plugins/PluginsService.java @@ -270,9 +270,6 @@ public class PluginsService extends AbstractComponent { Set bundles = new LinkedHashSet<>(); try (DirectoryStream stream = Files.newDirectoryStream(modulesDirectory)) { for (Path module : stream) { - if (FileSystemUtils.isHidden(module)) { - continue; // skip over .DS_Store etc - } PluginInfo info = PluginInfo.readFromProperties(module); Set urls = new LinkedHashSet<>(); // gather urls for jar files