From 6d5b65329570ef600e575b3e2a367391472cc5a8 Mon Sep 17 00:00:00 2001 From: cyon13 Date: Mon, 15 Jan 2024 17:40:44 +0900 Subject: [PATCH] =?UTF-8?q?username=20url=20encoding=20=ED=95=98=EB=8F=84?= =?UTF-8?q?=EB=A1=9D=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/scala/org/apache/kyuubi/service/ServiceUtils.scala | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kyuubi-common/src/main/scala/org/apache/kyuubi/service/ServiceUtils.scala b/kyuubi-common/src/main/scala/org/apache/kyuubi/service/ServiceUtils.scala index 955144af847..101eadb8988 100644 --- a/kyuubi-common/src/main/scala/org/apache/kyuubi/service/ServiceUtils.scala +++ b/kyuubi-common/src/main/scala/org/apache/kyuubi/service/ServiceUtils.scala @@ -18,6 +18,7 @@ package org.apache.kyuubi.service import java.io.{Closeable, IOException} +import java.net.URLEncoder import org.slf4j.Logger @@ -50,7 +51,7 @@ object ServiceUtils { if (indexOfDomainMatch <= 0) { userName } else { - userName.substring(0, indexOfDomainMatch) + URLEncoder.encode(userName, "UTF-8") } }