From: Julien Lancelot Date: Wed, 27 Aug 2014 16:16:01 +0000 (+0200) Subject: SONAR-5542 Force user authentication is not taking into account by Java Web Service X-Git-Tag: 4.5-RC1~67 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=6dad375c56376539cb745a11ce778df5ad349cc2;p=sonarqube.git SONAR-5542 Force user authentication is not taking into account by Java Web Service --- 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'