aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/webapp/WEB-INF/app
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@sonarsource.com>2016-09-15 15:37:25 +0200
committerJulien Lancelot <julien.lancelot@sonarsource.com>2016-09-16 15:15:30 +0200
commit777d3a179ecc4900883a699fd13c4b528509ccb2 (patch)
treecf346bdf80792311b3c7dc3d07cc722b0522c6e1 /server/sonar-web/src/main/webapp/WEB-INF/app
parent93cb5563068ce35b1f9d7a40a00739674343dffe (diff)
downloadsonarqube-777d3a179ecc4900883a699fd13c4b528509ccb2.tar.gz
sonarqube-777d3a179ecc4900883a699fd13c4b528509ccb2.zip
SONAR-8080 Fix error 500 when format parameter is used in web_api
Diffstat (limited to 'server/sonar-web/src/main/webapp/WEB-INF/app')
-rw-r--r--server/sonar-web/src/main/webapp/WEB-INF/app/controllers/web_api_controller.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/web_api_controller.rb b/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/web_api_controller.rb
index d9fe271a948..3d00a1736ba 100644
--- a/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/web_api_controller.rb
+++ b/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/web_api_controller.rb
@@ -21,7 +21,8 @@
class WebApiController < ApplicationController
def index
-
+ # Fix a very strange bug that generates a server error when the format parameter is set
+ params[:format] = nil if params[:format]
end
end