From: Julien Lancelot Date: Thu, 28 Aug 2014 12:06:37 +0000 (+0200) Subject: SONAR-5417 Remove /batch_bootstrap/properties WS as it's now no more used X-Git-Tag: 4.5-RC1~53 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=8b266df87be50366ff730bd21059ea746f2d079a;p=sonarqube.git SONAR-5417 Remove /batch_bootstrap/properties WS as it's now no more used --- diff --git a/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/batch_bootstrap_controller.rb b/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/batch_bootstrap_controller.rb index a12fb2fbc52..547d0bf7dcf 100644 --- a/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/batch_bootstrap_controller.rb +++ b/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/batch_bootstrap_controller.rb @@ -51,44 +51,6 @@ class BatchBootstrapController < Api::ApiController end end - # GET /batch_bootstrap/properties?[project=][&dryRun=true|false] - def properties - dryRun = params[:dryRun].present? && params[:dryRun] == "true" - has_dryrun_role = has_role?('dryRunScan') - has_scan_role = has_role?('scan') - - return render_unauthorized("You're not authorized to execute any SonarQube analysis. Please contact your SonarQube administrator.") if (!has_dryrun_role && !has_scan_role) - return render_unauthorized("You're only authorized to execute a local (dry run) SonarQube analysis without pushing the results to the SonarQube server. Please contact your SonarQube administrator.") if (!dryRun && !has_scan_role) - - keys=Set.new - properties=[] - - # project properties - root_project = load_project() - return render_unauthorized("You're not authorized to access to project '" + root_project.name + "', please contact your SonarQube administrator") if root_project && !has_scan_role && !has_role?(:user, root_project) - - if root_project - # bottom-up projects - projects=[root_project].concat(root_project.ancestor_projects) - projects.each do |project| - Property.find(:all, :conditions => ['resource_id=? and user_id is null', project.id]).each do |prop| - properties< 'resource_id is null and user_id is null').each do |prop| - properties< JSON(json_properties) - end private