aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-server
diff options
context:
space:
mode:
Diffstat (limited to 'sonar-server')
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/app/controllers/profiles_controller.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/controllers/profiles_controller.rb b/sonar-server/src/main/webapp/WEB-INF/app/controllers/profiles_controller.rb
index 9f5b1e8ca82..d7872c7d440 100644
--- a/sonar-server/src/main/webapp/WEB-INF/app/controllers/profiles_controller.rb
+++ b/sonar-server/src/main/webapp/WEB-INF/app/controllers/profiles_controller.rb
@@ -180,7 +180,10 @@ class ProfilesController < ApplicationController
else
profile = Profile.find_by_name_and_language(CGI::unescape(params[:name]), language)
end
+ not_found('Profile not found') unless profile
+
if (params[:format].blank?)
+ # standard sonar format
result = java_facade.backupProfile(profile.id)
send_data(result, :type => 'text/xml', :disposition => 'inline')
else