Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
CalvinKirs committed Sep 25, 2024
1 parent e82fe58 commit ac1214f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<String, String> 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)));
Expand Down

0 comments on commit ac1214f

Please sign in to comment.