HDFS-11665. HttpFSServerWebServer$deprecateEnv may leak secret. Contributed by John Zhuge.

This commit is contained in:
John Zhuge 2017-04-17 22:36:20 -07:00
parent 654372db85
commit ca2488c009

View File

@ -123,10 +123,9 @@ private static void deprecateEnv(String varName, Configuration conf,
if (value == null) {
return;
}
String propValue = conf.get(propName);
LOG.warn("Environment variable {} = '{}' is deprecated and overriding"
+ " property {} = '{}', please set the property in {} instead.",
varName, value, propName, propValue, confFile);
LOG.warn("Environment variable {} is deprecated and overriding"
+ " property {}', please set the property in {} instead.",
varName, propName, confFile);
conf.set(propName, value, "environment variable " + varName);
}