From e0110b8cf875d491d10e3fdf71f0990e543e2dac Mon Sep 17 00:00:00 2001 From: Teryk Bellahsene Date: Tue, 29 Sep 2015 17:54:42 +0200 Subject: [PATCH] Fix routing for format suffix management --- server/sonar-web/src/main/webapp/WEB-INF/lib/java_ws_routing.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/sonar-web/src/main/webapp/WEB-INF/lib/java_ws_routing.rb b/server/sonar-web/src/main/webapp/WEB-INF/lib/java_ws_routing.rb index 258de4f5b4a..f0cfacd6287 100644 --- a/server/sonar-web/src/main/webapp/WEB-INF/lib/java_ws_routing.rb +++ b/server/sonar-web/src/main/webapp/WEB-INF/lib/java_ws_routing.rb @@ -34,7 +34,7 @@ module ActionController ws_engine.controllers().each do |controller| controller.actions.each do |action| if (!action.handler().java_kind_of?(Java::OrgSonarApiServerWs::RailsHandler)) - prepend_route("#{controller.path()}/#{action.key()}.:format/:id", {:controller => 'api/java_ws', :action => 'index', :wsaction => action.key(), :wspath => controller.path()}) + prepend_route("#{controller.path()}/#{action.key()}.:responseFormat/:id", {:controller => 'api/java_ws', :action => 'index', :wsaction => action.key(), :wspath => controller.path()}) prepend_route("#{controller.path()}/#{action.key()}/:id", {:controller => 'api/java_ws', :action => 'index', :wsaction => action.key(), :wspath => controller.path()}) if action.key()=='index' prepend_route("#{controller.path()}", {:controller => 'api/java_ws', :action => 'index', :wsaction => action.key(), :wspath => controller.path()}) -- 2.39.5