diff options
author | Duarte Meneses <duarte.meneses@sonarsource.com> | 2023-05-02 13:44:15 -0500 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2023-05-03 20:02:58 +0000 |
commit | e0202e205709f1b06b56f7f108b12476860412d4 (patch) | |
tree | 97c1390c94211346e23ef8e1c479b8d8c5cbf84b /server/sonar-webserver-core | |
parent | 0f7a9234de7d0601f17d48ca0b16c270f1da380c (diff) | |
download | sonarqube-e0202e205709f1b06b56f7f108b12476860412d4.tar.gz sonarqube-e0202e205709f1b06b56f7f108b12476860412d4.zip |
SONAR-19014 Don't rely on plugin APIs list of static resources
Diffstat (limited to 'server/sonar-webserver-core')
-rw-r--r-- | server/sonar-webserver-core/src/main/java/org/sonar/server/plugins/PluginsRiskConsentFilter.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/sonar-webserver-core/src/main/java/org/sonar/server/plugins/PluginsRiskConsentFilter.java b/server/sonar-webserver-core/src/main/java/org/sonar/server/plugins/PluginsRiskConsentFilter.java index 8d7470f2a36..8b625204318 100644 --- a/server/sonar-webserver-core/src/main/java/org/sonar/server/plugins/PluginsRiskConsentFilter.java +++ b/server/sonar-webserver-core/src/main/java/org/sonar/server/plugins/PluginsRiskConsentFilter.java @@ -22,6 +22,7 @@ package org.sonar.server.plugins; import java.io.IOException; import java.util.Set; import org.sonar.api.config.Configuration; +import org.sonar.api.impl.ws.StaticResources; import org.sonar.api.server.http.HttpRequest; import org.sonar.api.server.http.HttpResponse; import org.sonar.api.web.FilterChain; @@ -30,7 +31,6 @@ import org.sonar.api.web.UrlPattern; import org.sonar.core.extension.PluginRiskConsent; import org.sonar.server.user.ThreadLocalUserSession; -import static org.sonar.api.web.UrlPattern.Builder.staticResourcePatterns; import static org.sonar.core.config.CorePropertyDefinitions.PLUGINS_RISK_CONSENT; import static org.sonar.core.extension.PluginRiskConsent.NOT_ACCEPTED; import static org.sonar.core.extension.PluginRiskConsent.REQUIRED; @@ -74,7 +74,7 @@ public class PluginsRiskConsentFilter extends HttpFilter { public UrlPattern doGetPattern() { return UrlPattern.builder() .includes("/*") - .excludes(staticResourcePatterns()) + .excludes(StaticResources.patterns()) .excludes(SKIPPED_URLS) .build(); } |