From 02c4797207c12058ad0306efab1190de99f99b98 Mon Sep 17 00:00:00 2001 From: Julien Lancelot Date: Mon, 13 Feb 2017 09:51:45 +0100 Subject: [PATCH] SONAR-8684 Remove WS path exclusions from web page filter --- .../main/java/org/sonar/server/platform/web/WebPagesFilter.java | 2 -- .../java/org/sonar/server/platform/web/WebPagesFilterTest.java | 2 -- 2 files changed, 4 deletions(-) diff --git a/server/sonar-server/src/main/java/org/sonar/server/platform/web/WebPagesFilter.java b/server/sonar-server/src/main/java/org/sonar/server/platform/web/WebPagesFilter.java index 2e743f297b6..d959c579dd0 100644 --- a/server/sonar-server/src/main/java/org/sonar/server/platform/web/WebPagesFilter.java +++ b/server/sonar-server/src/main/java/org/sonar/server/platform/web/WebPagesFilter.java @@ -54,8 +54,6 @@ public class WebPagesFilter implements Filter { private static final ServletFilter.UrlPattern URL_PATTERN = ServletFilter.UrlPattern .builder() .excludes(staticResourcePatterns()) - // These exclusions won't be needed anymore when this filter will be last filter (no more rails filter) - .excludes("/api/*", "/batch/*") .build(); private String indexDotHtml; diff --git a/server/sonar-server/src/test/java/org/sonar/server/platform/web/WebPagesFilterTest.java b/server/sonar-server/src/test/java/org/sonar/server/platform/web/WebPagesFilterTest.java index ef3da9a7801..0ada4049b7d 100644 --- a/server/sonar-server/src/test/java/org/sonar/server/platform/web/WebPagesFilterTest.java +++ b/server/sonar-server/src/test/java/org/sonar/server/platform/web/WebPagesFilterTest.java @@ -68,8 +68,6 @@ public class WebPagesFilterTest { verifyPathIsHandled("/"); verifyPathIsHandled("/issues"); verifyPathIsHandled("/foo"); - verifyPthIsIgnored("/api/issues/search"); - verifyPthIsIgnored("/batch/index"); } @Test -- 2.39.5