From 6dad375c56376539cb745a11ce778df5ad349cc2 Mon Sep 17 00:00:00 2001 From: Julien Lancelot Date: Wed, 27 Aug 2014 18:16:01 +0200 Subject: [PATCH] SONAR-5542 Force user authentication is not taking into account by Java Web Service --- .../webapp/WEB-INF/app/controllers/api/java_ws_controller.rb | 3 +-- 1 file changed, 1 insertion(+), 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' -- 2.39.5