]> source.dussan.org Git - sonarqube.git/commit
SONAR-17469 improve SCM account validation on user creation/update. (#6905)
authorWojtek Wajerowicz <115081248+wojciech-wajerowicz-sonarsource@users.noreply.github.com>
Thu, 20 Oct 2022 08:01:09 +0000 (10:01 +0200)
committersonartech <sonartech@sonarsource.com>
Thu, 20 Oct 2022 20:03:02 +0000 (20:03 +0000)
commit344dcf9cea680693d62ca73a19eb7c652d5ca271
treee0a75fd9cb2244e9409965c48aae76b1a89ff428
parente78a87e91aca27322fba7ed5451e466ace54ca39
SONAR-17469 improve SCM account validation on user creation/update. (#6905)

We don't allow leading and/or trailing whitespace on SCM account names.
We also don't allow duplicate SCM accounts.
server/sonar-web/src/main/js/apps/users/components/UserForm.tsx
server/sonar-web/src/main/js/apps/users/components/__tests__/UserForm-test.tsx
server/sonar-webserver-webapi/src/main/java/org/sonar/server/user/ws/CreateAction.java
server/sonar-webserver-webapi/src/main/java/org/sonar/server/user/ws/UpdateAction.java
server/sonar-webserver-webapi/src/test/java/org/sonar/server/user/ws/CreateActionTest.java
server/sonar-webserver-webapi/src/test/java/org/sonar/server/user/ws/UpdateActionTest.java