SophieTech88 opened a new pull request, #916: URL: https://github.com/apache/yunikorn-core/pull/916
### What is this PR for? Assert invalid user name in Get User REST API. In the pkg/webservice/handler.go file, we see in the func getUserResourceUsage, it didn't check whether the userName is valid or not. So in this PR, it check the UserRegExp to see if the user name is valid or not, and send back the InvalidUserName response. ### What type of PR is it? * [ ] - Bug Fix * [x] - Improvement * [ ] - Feature * [ ] - Documentation * [ ] - Hot Fix * [ ] - Refactoring ### Todos * [ ] - Task ### What is the Jira issue? https://issues.apache.org/jira/browse/YUNIKORN-2718 ### How should this be tested? It passed all test cases locally. ### Screenshots (if appropriate) ### Questions: * [ ] - The licenses files need update. * [ ] - There is breaking changes for older versions. * [ ] - It needs documentation. -- 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]
