You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@inlong.apache.org by lu...@apache.org on 2024/02/20 01:45:18 UTC
(inlong) branch release-1.11.0 updated: [INLONG-9689][Manager] Optimize MySQL JDBC URL check (#9694)
This is an automated email from the ASF dual-hosted git repository.
luchunliang pushed a commit to branch release-1.11.0
in repository https://gitbox.apache.org/repos/asf/inlong.git
The following commit(s) were added to refs/heads/release-1.11.0 by this push:
new ec754a174e [INLONG-9689][Manager] Optimize MySQL JDBC URL check (#9694)
ec754a174e is described below
commit ec754a174e81b9aeaf6904f98ffdd510e588544a
Author: fuweng11 <76...@users.noreply.github.com>
AuthorDate: Mon Feb 19 13:03:05 2024 +0800
[INLONG-9689][Manager] Optimize MySQL JDBC URL check (#9694)
---
.../org/apache/inlong/manager/pojo/util/MySQLSensitiveUrlUtils.java | 3 +++
1 file changed, 3 insertions(+)
diff --git a/inlong-manager/manager-pojo/src/main/java/org/apache/inlong/manager/pojo/util/MySQLSensitiveUrlUtils.java b/inlong-manager/manager-pojo/src/main/java/org/apache/inlong/manager/pojo/util/MySQLSensitiveUrlUtils.java
index ea9361ae42..e155887f1e 100644
--- a/inlong-manager/manager-pojo/src/main/java/org/apache/inlong/manager/pojo/util/MySQLSensitiveUrlUtils.java
+++ b/inlong-manager/manager-pojo/src/main/java/org/apache/inlong/manager/pojo/util/MySQLSensitiveUrlUtils.java
@@ -78,6 +78,9 @@ public class MySQLSensitiveUrlUtils {
List<String> paramList = new ArrayList<>();
String queryString = StringUtils.substringAfter(resultUrl, InlongConstants.QUESTION_MARK);
+ if (queryString.contains("#")) {
+ queryString = StringUtils.substringBefore(queryString, "#");
+ }
for (String param : queryString.split(InlongConstants.AMPERSAND)) {
String key = StringUtils.substringBefore(param, InlongConstants.EQUAL);
String value = StringUtils.substringAfter(param, InlongConstants.EQUAL);