aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-server/src
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@sonarsource.com>2017-02-13 09:51:45 +0100
committerJulien Lancelot <julien.lancelot@sonarsource.com>2017-02-13 11:09:58 +0100
commit02c4797207c12058ad0306efab1190de99f99b98 (patch)
treee42429cd81f15d7df0e3c89b8591f15a16a0cacc /server/sonar-server/src
parente7c02f7fec37c6c7c16af8759d313ad81d807ffa (diff)
downloadsonarqube-02c4797207c12058ad0306efab1190de99f99b98.tar.gz
sonarqube-02c4797207c12058ad0306efab1190de99f99b98.zip
SONAR-8684 Remove WS path exclusions from web page filter
Diffstat (limited to 'server/sonar-server/src')
-rw-r--r--server/sonar-server/src/main/java/org/sonar/server/platform/web/WebPagesFilter.java2
-rw-r--r--server/sonar-server/src/test/java/org/sonar/server/platform/web/WebPagesFilterTest.java2
2 files changed, 0 insertions, 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