This is an automated email from the ASF dual-hosted git repository. nic pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/kylin.git
The following commit(s) were added to refs/heads/master by this push: new decaf23 KYLIN-4031 RestClient will throw exception with message contains clear-text password decaf23 is described below commit decaf230cba5468525bbd525724028c0a55e4d03 Author: yuzhang <shifengdefan...@163.com> AuthorDate: Sun Jun 23 13:36:10 2019 +0800 KYLIN-4031 RestClient will throw exception with message contains clear-text password --- .../src/main/java/org/apache/kylin/common/restclient/RestClient.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core-common/src/main/java/org/apache/kylin/common/restclient/RestClient.java b/core-common/src/main/java/org/apache/kylin/common/restclient/RestClient.java index f1c7dd4..955b0ff 100644 --- a/core-common/src/main/java/org/apache/kylin/common/restclient/RestClient.java +++ b/core-common/src/main/java/org/apache/kylin/common/restclient/RestClient.java @@ -99,7 +99,7 @@ public class RestClient { public RestClient(String uri, Integer httpConnectionTimeoutMs, Integer httpSocketTimeoutMs) { Matcher m = fullRestPattern.matcher(uri); if (!m.matches()) - throw new IllegalArgumentException("URI: " + uri + " -- does not match pattern " + fullRestPattern); + throw new IllegalArgumentException("URI: " + uri.replaceAll(":.+@", ":*****@") + " -- does not match pattern " + fullRestPattern); String user = m.group(1); String pwd = m.group(2);