From: Julien Lancelot Date: Mon, 13 Feb 2017 08:51:45 +0000 (+0100) Subject: SONAR-8684 Remove WS path exclusions from web page filter X-Git-Tag: 6.3-RC1~6 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=02c4797207c12058ad0306efab1190de99f99b98;p=sonarqube.git SONAR-8684 Remove WS path exclusions from web page filter --- 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