From ac1214f9095820805dff817dad38a0c5fccbe0f6 Mon Sep 17 00:00:00 2001 From: Calvin Kirs Date: Wed, 25 Sep 2024 10:05:15 +0800 Subject: [PATCH] Add test --- fe/fe-common/src/main/java/org/apache/doris/common/Config.java | 2 +- .../src/main/java/org/apache/doris/plugin/PropertiesUtils.java | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/fe/fe-common/src/main/java/org/apache/doris/common/Config.java b/fe/fe-common/src/main/java/org/apache/doris/common/Config.java index e52d09c5b93547..5156001aa60b09 100644 --- a/fe/fe-common/src/main/java/org/apache/doris/common/Config.java +++ b/fe/fe-common/src/main/java/org/apache/doris/common/Config.java @@ -2327,7 +2327,7 @@ public class Config extends ConfigBase { "鉴权插件配置文件路径,需在 DORIS_HOME 下,默认为 conf/authorization.conf", "Authorization plugin configuration file path, need to be in DORIS_HOME," + "default is conf/authorization.conf"}) - public static String authorization_config_file_path = "conf/authorization.conf"; + public static String authorization_config_file_path = "/conf/authorization.conf"; /** * This configuration is used to enable the statistics of query information, which will record diff --git a/fe/fe-core/src/main/java/org/apache/doris/plugin/PropertiesUtils.java b/fe/fe-core/src/main/java/org/apache/doris/plugin/PropertiesUtils.java index 752358191db077..07d911ab5e4583 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/plugin/PropertiesUtils.java +++ b/fe/fe-core/src/main/java/org/apache/doris/plugin/PropertiesUtils.java @@ -29,10 +29,9 @@ import java.util.Properties; public class PropertiesUtils { - public static final String ACCESS_PROPERTIES_FILE_DIR = File.separator + Config.authorization_config_file_path; public static Map loadAccessControllerPropertiesOrNull() throws IOException { - String configFilePath = EnvUtils.getDorisHome() + ACCESS_PROPERTIES_FILE_DIR; + String configFilePath = EnvUtils.getDorisHome() + Config.authorization_config_file_path; if (new File(configFilePath).exists()) { Properties properties = new Properties(); properties.load(Files.newInputStream(Paths.get(configFilePath)));