aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@sonarsource.com>2014-08-27 18:16:01 +0200
committerJulien Lancelot <julien.lancelot@sonarsource.com>2014-08-27 18:16:09 +0200
commit6dad375c56376539cb745a11ce778df5ad349cc2 (patch)
treea9a7eecc26aa1d26e0c12a199c9ca9f571dca6f1 /server/sonar-web
parentad7b5a4e10c5556d3449c842e233e2dfd2562074 (diff)
downloadsonarqube-6dad375c56376539cb745a11ce778df5ad349cc2.tar.gz
sonarqube-6dad375c56376539cb745a11ce778df5ad349cc2.zip
SONAR-5542 Force user authentication is not taking into account by Java Web Service
Diffstat (limited to 'server/sonar-web')
-rw-r--r--server/sonar-web/src/main/webapp/WEB-INF/app/controllers/api/java_ws_controller.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/api/java_ws_controller.rb b/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/api/java_ws_controller.rb
index b547f08dacf..a30a743e98a 100644
--- a/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/api/java_ws_controller.rb
+++ b/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/api/java_ws_controller.rb
@@ -21,7 +21,7 @@
# since 4.2
class Api::JavaWsController < Api::ApiController
- skip_before_filter :check_authentication, :except => 'skip_authentication_check_for_batch_index'
+ before_filter :check_authentication, :unless => ['skip_authentication_check_for_batch_index']
def index
ws_request = Java::OrgSonarServerWs::ServletRequest.new(servlet_request, params.to_java)
@@ -39,7 +39,6 @@ class Api::JavaWsController < Api::ApiController
redirect_to :action => 'index', :wspath => 'api/webservices', :wsaction => 'list'
end
- private
def skip_authentication_check_for_batch_index
params[:wspath]=='batch' && params[:wsaction]=='index'