HDFS-11665. HttpFSServerWebServer$deprecateEnv may leak secret. Contributed by John Zhuge.
This commit is contained in:
parent
654372db85
commit
ca2488c009
|
@ -123,10 +123,9 @@ public class HttpFSServerWebServer {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
String propValue = conf.get(propName);
|
LOG.warn("Environment variable {} is deprecated and overriding"
|
||||||
LOG.warn("Environment variable {} = '{}' is deprecated and overriding"
|
+ " property {}', please set the property in {} instead.",
|
||||||
+ " property {} = '{}', please set the property in {} instead.",
|
varName, propName, confFile);
|
||||||
varName, value, propName, propValue, confFile);
|
|
||||||
conf.set(propName, value, "environment variable " + varName);
|
conf.set(propName, value, "environment variable " + varName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue