From: Julien Lancelot Date: Thu, 15 Sep 2016 13:37:25 +0000 (+0200) Subject: SONAR-8080 Fix error 500 when format parameter is used in web_api X-Git-Tag: 6.1-RC1~25 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=777d3a179ecc4900883a699fd13c4b528509ccb2;p=sonarqube.git SONAR-8080 Fix error 500 when format parameter is used in web_api --- 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