github-code-scanning[bot] commented on code in PR #12241:
URL: https://github.com/apache/dolphinscheduler/pull/12241#discussion_r985169932


##########
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/controller/UsersController.java:
##########
@@ -185,11 +185,11 @@
                              @RequestParam(value = "userPassword") String 
userPassword,
                              @RequestParam(value = "queue", required = false, 
defaultValue = "") String queue,
                              @RequestParam(value = "email") String email,
-                             @RequestParam(value = "tenantId") int tenantId,
+                             @RequestParam(value = "tenantId", required = 
false, defaultValue = "0") int tenantId,

Review Comment:
   ## Useless parameter
   
   The parameter tenantId is unused.
   
   [Show more 
details](https://github.com/apache/dolphinscheduler/security/code-scanning/1595)



##########
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/controller/UsersController.java:
##########
@@ -108,13 +108,13 @@
     public Result createUser(@ApiIgnore @RequestAttribute(value = 
Constants.SESSION_USER) User loginUser,
                              @RequestParam(value = "userName") String userName,
                              @RequestParam(value = "userPassword") String 
userPassword,
-                             @RequestParam(value = "tenantId") int tenantId,
+                             @RequestParam(value = "tenantId", required = 
false, defaultValue = "0") int tenantId,

Review Comment:
   ## Useless parameter
   
   The parameter tenantId is unused.
   
   [Show more 
details](https://github.com/apache/dolphinscheduler/security/code-scanning/1596)



-- 
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]

Reply via email to