Browse Source

Upgrade to Tomcat 11.0.6

Closes gh-45475
pull/45379/head
Stéphane Nicoll 9 months ago committed by Phillip Webb
parent
commit
baefbc1aff
  1. 2
      gradle.properties
  2. 2
      spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/ServerProperties.java
  3. 4
      spring-boot-project/spring-boot-dependencies/build.gradle
  4. 3
      spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/embedded/tomcat/DisableReferenceClearingContextCustomizer.java
  5. 1
      spring-boot-project/spring-boot/src/test/java/org/springframework/boot/web/embedded/tomcat/TomcatReactiveWebServerFactoryTests.java
  6. 1
      spring-boot-project/spring-boot/src/test/java/org/springframework/boot/web/embedded/tomcat/TomcatServletWebServerFactoryTests.java

2
gradle.properties

@ -21,6 +21,6 @@ nativeBuildToolsVersion=0.10.6 @@ -21,6 +21,6 @@ nativeBuildToolsVersion=0.10.6
snakeYamlVersion=2.4
springFrameworkVersion=6.2.7-SNAPSHOT
springFramework60xVersion=6.0.23
tomcatVersion=10.1.40
tomcatVersion=11.0.6
kotlin.stdlib.default.dependency=false

2
spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/ServerProperties.java

@ -517,7 +517,7 @@ public class ServerProperties { @@ -517,7 +517,7 @@ public class ServerProperties {
* Maximum number of parameters (GET plus POST) that will be automatically parsed
* by the container. A value of less than 0 means no limit.
*/
private int maxParameterCount = 10000;
private int maxParameterCount = 1000;
/**
* Whether to use APR.

4
spring-boot-project/spring-boot-dependencies/build.gradle

@ -2514,10 +2514,6 @@ bom { @@ -2514,10 +2514,6 @@ bom {
}
}
library("Tomcat", "${tomcatVersion}") {
prohibit {
versionRange "[11.0.0-M1,)"
because "it exceeds our Jakarte EE 10 baseline"
}
group("org.apache.tomcat") {
modules = [
"tomcat-annotations-api",

3
spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/embedded/tomcat/DisableReferenceClearingContextCustomizer.java

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
/*
* Copyright 2012-2022 the original author or authors.
* Copyright 2012-2025 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -33,7 +33,6 @@ class DisableReferenceClearingContextCustomizer implements TomcatContextCustomiz @@ -33,7 +33,6 @@ class DisableReferenceClearingContextCustomizer implements TomcatContextCustomiz
return;
}
try {
standardContext.setClearReferencesObjectStreamClassCaches(false);
standardContext.setClearReferencesRmiTargets(false);
standardContext.setClearReferencesThreadLocals(false);
}

1
spring-boot-project/spring-boot/src/test/java/org/springframework/boot/web/embedded/tomcat/TomcatReactiveWebServerFactoryTests.java

@ -220,7 +220,6 @@ class TomcatReactiveWebServerFactoryTests extends AbstractReactiveWebServerFacto @@ -220,7 +220,6 @@ class TomcatReactiveWebServerFactoryTests extends AbstractReactiveWebServerFacto
this.webServer.start();
Tomcat tomcat = ((TomcatWebServer) this.webServer).getTomcat();
StandardContext context = (StandardContext) tomcat.getHost().findChildren()[0];
assertThat(context.getClearReferencesObjectStreamClassCaches()).isFalse();
assertThat(context.getClearReferencesRmiTargets()).isFalse();
assertThat(context.getClearReferencesThreadLocals()).isFalse();
}

1
spring-boot-project/spring-boot/src/test/java/org/springframework/boot/web/embedded/tomcat/TomcatServletWebServerFactoryTests.java

@ -538,7 +538,6 @@ class TomcatServletWebServerFactoryTests extends AbstractServletWebServerFactory @@ -538,7 +538,6 @@ class TomcatServletWebServerFactoryTests extends AbstractServletWebServerFactory
this.webServer.start();
Tomcat tomcat = ((TomcatWebServer) this.webServer).getTomcat();
StandardContext context = (StandardContext) tomcat.getHost().findChildren()[0];
assertThat(context.getClearReferencesObjectStreamClassCaches()).isFalse();
assertThat(context.getClearReferencesRmiTargets()).isFalse();
assertThat(context.getClearReferencesThreadLocals()).isFalse();
}

Loading…
Cancel
Save