From: Jacek Poreda Date: Mon, 24 Apr 2023 09:47:40 +0000 (+0200) Subject: SONAR-19091 Fix SSF-383 X-Git-Tag: 9.9.1.69595~2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=350ecd17dd18d82cee9a0c5f9316fba83aa69dce;p=sonarqube.git SONAR-19091 Fix SSF-383 (cherry picked from commit 9708d98955560e51ecc3d1089a7d68e81277114c) --- diff --git a/build.gradle b/build.gradle index 3f6e5536ece..f3e70cccb31 100644 --- a/build.gradle +++ b/build.gradle @@ -295,7 +295,7 @@ subprojects { entry 'log4j-api' entry 'log4j-to-slf4j' } - dependencySet(group: 'org.apache.tomcat.embed', version: '9.0.70') { + dependencySet(group: 'org.apache.tomcat.embed', version: '9.0.74') { entry 'tomcat-embed-core' entry('tomcat-embed-jasper') { exclude 'org.eclipse.jdt.core.compiler:ecj' diff --git a/server/sonar-webserver/src/main/java/org/sonar/server/app/TomcatConnectors.java b/server/sonar-webserver/src/main/java/org/sonar/server/app/TomcatConnectors.java index b9d31776b8c..7f5487903d3 100644 --- a/server/sonar-webserver/src/main/java/org/sonar/server/app/TomcatConnectors.java +++ b/server/sonar-webserver/src/main/java/org/sonar/server/app/TomcatConnectors.java @@ -89,7 +89,7 @@ class TomcatConnectors { private static void configureCompression(Connector connector) { connector.setProperty("compression", "on"); connector.setProperty("compressionMinSize", "1024"); - connector.setProperty("compressableMimeType", "text/html,text/xml,text/plain,text/css,application/json,application/javascript"); + connector.setProperty("compressibleMimeType", "text/html,text/xml,text/plain,text/css,application/json,application/javascript,text/javascript"); } private static void setConnectorAttribute(Connector c, String key, @Nullable Object value) { diff --git a/sonar-ws/src/main/java/org/sonarqube/ws/MediaTypes.java b/sonar-ws/src/main/java/org/sonarqube/ws/MediaTypes.java index 5da0f634a6a..88062ad50d1 100644 --- a/sonar-ws/src/main/java/org/sonarqube/ws/MediaTypes.java +++ b/sonar-ws/src/main/java/org/sonarqube/ws/MediaTypes.java @@ -32,7 +32,7 @@ public final class MediaTypes { public static final String CSV = "text/csv"; public static final String DEFAULT = "application/octet-stream"; public static final String HTML = "text/html"; - public static final String JAVASCRIPT = "application/javascript"; + public static final String JAVASCRIPT = "text/javascript"; public static final String JSON = "application/json"; public static final String PROTOBUF = "application/x-protobuf"; public static final String SVG = "image/svg+xml";