From 939fb2453e19774469729f2ced0de7daee67bbb7 Mon Sep 17 00:00:00 2001 From: Julien Lancelot Date: Tue, 28 Jul 2015 09:48:12 +0200 Subject: [PATCH] SONAR-6726 Authentication freeze with LDAP and Dev Cockpit --- .../src/main/webapp/WEB-INF/lib/need_authentication.rb | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/server/sonar-web/src/main/webapp/WEB-INF/lib/need_authentication.rb b/server/sonar-web/src/main/webapp/WEB-INF/lib/need_authentication.rb index bec69b1aa70..cc4cb53f4eb 100644 --- a/server/sonar-web/src/main/webapp/WEB-INF/lib/need_authentication.rb +++ b/server/sonar-web/src/main/webapp/WEB-INF/lib/need_authentication.rb @@ -160,9 +160,12 @@ class PluginRealm user.save(false) synchronize_groups(user) - user.notify_creation_handlers - user + # Note that validation disabled + user.save(false) end + # Must be outside the transaction in order to not have a lock on the users table : http://jira.sonarsource.com/browse/SONAR-6726 + user.notify_creation_handlers + Internal.users_api.index() # Return user -- 2.39.5