Skip to content

Commit

Permalink
[NDAP-1966] Username URLDecode Applied.
Browse files Browse the repository at this point in the history
  • Loading branch information
paul committed Feb 22, 2024
1 parent 04641b1 commit f4cb00f
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@

package org.apache.kyuubi.server.api.v1

import java.net.URLDecoder
import java.nio.charset.StandardCharsets
import java.util.Collections
import javax.ws.rs._
import javax.ws.rs.core.{MediaType, Response}
Expand Down Expand Up @@ -329,7 +331,7 @@ private[v1] class AdminResource extends ApiRequestContext with Logging {
node: ServiceNodeInfo): Engine = {
new Engine(
version,
user.replace("%40", "@"),
URLDecoder.decode(user, StandardCharsets.UTF_8),
engineType,
shareLevel,
node.namespace.split("/").last,
Expand Down

0 comments on commit f4cb00f

Please sign in to comment.