zddr commented on code in PR #27718:
URL: https://github.com/apache/doris/pull/27718#discussion_r1409043916


##########
fe/fe-core/src/main/java/org/apache/doris/httpv2/controller/BaseController.java:
##########
@@ -266,11 +266,10 @@ private boolean parseAuthInfo(HttpServletRequest request, 
ActionAuthorizationInf
             authInfo.fullUserName = authString.substring(0, index);
             final String[] elements = authInfo.fullUserName.split("@");
             if (elements != null && elements.length < 2) {
-                authInfo.fullUserName = 
ClusterNamespace.getFullName(SystemInfoService.DEFAULT_CLUSTER,
-                        authInfo.fullUserName);
+                authInfo.fullUserName = 
ClusterNamespace.getNameFromFullName(authInfo.fullUserName);
                 authInfo.cluster = SystemInfoService.DEFAULT_CLUSTER;
             } else if (elements != null && elements.length == 2) {
-                authInfo.fullUserName = 
ClusterNamespace.getFullName(elements[1], elements[0]);
+                authInfo.fullUserName = 
ClusterNamespace.getNameFromFullName(elements[0]);
                 authInfo.cluster = elements[1];

Review Comment:
   authInfo.cluster do not need remove?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to