aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@sonarsource.com>2015-07-28 10:30:03 +0200
committerJulien Lancelot <julien.lancelot@sonarsource.com>2015-07-28 10:30:03 +0200
commit1b20681243b5abb16a1f0d96123615f17cb97072 (patch)
treee03fb9bac535c344291d15b113f59d3f47573bb7 /server/sonar-web
parentc24960fb4118de3791637c054b0a661772e7af16 (diff)
parent939fb2453e19774469729f2ced0de7daee67bbb7 (diff)
downloadsonarqube-1b20681243b5abb16a1f0d96123615f17cb97072.tar.gz
sonarqube-1b20681243b5abb16a1f0d96123615f17cb97072.zip
SONAR-6726 Authentication freeze with LDAP and Dev Cockpit
Diffstat (limited to 'server/sonar-web')
-rw-r--r--server/sonar-web/src/main/webapp/WEB-INF/lib/need_authentication.rb7
1 files 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