yiguolei commented on code in PR #25049:
URL: https://github.com/apache/doris/pull/25049#discussion_r1351618491


##########
fe/fe-core/src/main/java/org/apache/doris/service/FrontendServiceImpl.java:
##########
@@ -2047,51 +2064,41 @@ private void httpStreamPutImpl(TStreamLoadPutRequest 
request, TStreamLoadPutResu
             checkPasswordAndPrivs(cluster, request.getUser(), 
request.getPasswd(), request.getDb(), request.getTbl(),
                     request.getUserIp(), PrivPredicate.LOAD);
         }
+        ctx.setThreadLocalInfo();
         ctx.setEnv(Env.getCurrentEnv());
         ctx.setQueryId(request.getLoadId());
         ctx.setCluster(SystemInfoService.DEFAULT_CLUSTER);
         ctx.setCurrentUserIdentity(UserIdentity.ROOT);

Review Comment:
   why use root???
   Should use the actual username because we need check if current user has the 
related privilege!!!



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to