diff options
author | Julien Lancelot <julien.lancelot@sonarsource.com> | 2014-08-28 18:18:27 +0200 |
---|---|---|
committer | Julien Lancelot <julien.lancelot@sonarsource.com> | 2014-08-28 18:18:37 +0200 |
commit | e1e54e5839138129dca33eea3f8d2e781fceab34 (patch) | |
tree | 623c494a161b68b2d326fcbc7469cf193da57289 /server/sonar-web | |
parent | 9dda0bbeab053cc4a09f7d54176d074179fdf9e4 (diff) | |
download | sonarqube-e1e54e5839138129dca33eea3f8d2e781fceab34.tar.gz sonarqube-e1e54e5839138129dca33eea3f8d2e781fceab34.zip |
SONAR-5542 /batch/file should never be secured
Diffstat (limited to 'server/sonar-web')
-rw-r--r-- | server/sonar-web/src/main/webapp/WEB-INF/app/controllers/api/java_ws_controller.rb | 6 |
1 files changed, 3 insertions, 3 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 a30a743e98a..4be0899f0b4 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 - before_filter :check_authentication, :unless => ['skip_authentication_check_for_batch_index'] + before_filter :check_authentication, :unless => ['skip_authentication_check_for_batch'] def index ws_request = Java::OrgSonarServerWs::ServletRequest.new(servlet_request, params.to_java) @@ -40,8 +40,8 @@ class Api::JavaWsController < Api::ApiController end - def skip_authentication_check_for_batch_index - params[:wspath]=='batch' && params[:wsaction]=='index' + def skip_authentication_check_for_batch + (params[:wspath]=='batch' && params[:wsaction]=='index') || (params[:wspath]=='batch' && params[:wsaction]=='file') end end |