]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-4211 Allow Sonar Runner to work with secured server
authorJulien HENRY <julien.henry@sonarsource.com>
Mon, 25 Mar 2013 15:23:59 +0000 (16:23 +0100)
committerJulien HENRY <julien.henry@sonarsource.com>
Mon, 25 Mar 2013 15:25:30 +0000 (16:25 +0100)
when sonar.forceAuthentication=true

sonar-server/src/main/webapp/WEB-INF/app/controllers/batch_bootstrap_controller.rb

index def8dd61d5bd8f0053661aafdffbe87accb9b066..93d2b793287bc017454ff10f2ab5dcb235878941 100644 (file)
@@ -21,6 +21,9 @@
 # Since 3.4
 class BatchBootstrapController < Api::ApiController
 
+  # SONAR-4211 Access to index should not require authentication
+  skip_before_filter :check_authentication, :only => 'index'
+
   # GET /batch_bootstrap/db?project=<key or id>
   def db
     project = load_project()
@@ -51,7 +54,7 @@ class BatchBootstrapController < Api::ApiController
 
     render :json => JSON(json_properties)
   end
-  
+
   # GET /batch_bootstrap/index
   def index
     redirect_to "/deploy/bootstrap/index.txt"