]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-8684 Remove WS path exclusions from web page filter 1666/head
authorJulien Lancelot <julien.lancelot@sonarsource.com>
Mon, 13 Feb 2017 08:51:45 +0000 (09:51 +0100)
committerJulien Lancelot <julien.lancelot@sonarsource.com>
Mon, 13 Feb 2017 10:09:58 +0000 (11:09 +0100)
server/sonar-server/src/main/java/org/sonar/server/platform/web/WebPagesFilter.java
server/sonar-server/src/test/java/org/sonar/server/platform/web/WebPagesFilterTest.java

index 2e743f297b67401b747509c6a4c1e88b1adaf6c5..d959c579dd0cc23295c7d9fd69bae5a7d196d369 100644 (file)
@@ -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;
index ef3da9a78019fbebfcd17cf35c3805a62f05b354..0ada4049b7d9c2d358415dcb4895e9c0ea29a4a8 100644 (file)
@@ -68,8 +68,6 @@ public class WebPagesFilterTest {
     verifyPathIsHandled("/");
     verifyPathIsHandled("/issues");
     verifyPathIsHandled("/foo");
-    verifyPthIsIgnored("/api/issues/search");
-    verifyPthIsIgnored("/batch/index");
   }
 
   @Test