]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-6726 Authentication freeze with LDAP and Dev Cockpit
authorJulien Lancelot <julien.lancelot@sonarsource.com>
Tue, 28 Jul 2015 07:48:12 +0000 (09:48 +0200)
committerJulien Lancelot <julien.lancelot@sonarsource.com>
Tue, 28 Jul 2015 08:05:44 +0000 (10:05 +0200)
server/sonar-web/src/main/webapp/WEB-INF/lib/need_authentication.rb

index bec69b1aa7001a85d18cb26d677d92f5a4ca8789..cc4cb53f4eb625aad9d472f5457517ebddba3573 100644 (file)
@@ -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