From 3ad232dea0a1a81ff59dd7a0eb0c33db58c1a884 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Nicoll?= Date: Thu, 10 Jul 2025 06:39:32 +0200 Subject: [PATCH] Upgrade to Tomcat 10.1.43 Closes gh-46383 --- gradle.properties | 2 +- .../boot/autoconfigure/web/ServerProperties.java | 2 +- .../web/embedded/TomcatWebServerFactoryCustomizerTests.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gradle.properties b/gradle.properties index 75d5054e096..b6dd3adc82a 100644 --- a/gradle.properties +++ b/gradle.properties @@ -21,6 +21,6 @@ nativeBuildToolsVersion=0.10.6 snakeYamlVersion=2.4 springFrameworkVersion=6.2.9-SNAPSHOT springFramework60xVersion=6.0.23 -tomcatVersion=10.1.42 +tomcatVersion=10.1.43 kotlin.stdlib.default.dependency=false diff --git a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/ServerProperties.java b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/ServerProperties.java index 20a7823817b..8a3cdf86ead 100644 --- a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/ServerProperties.java +++ b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/ServerProperties.java @@ -424,7 +424,7 @@ public class ServerProperties { * Requests that exceed this limit will be rejected. A value of less than 0 means * no limit. */ - private int maxPartCount = 10; + private int maxPartCount = 50; /** * Maximum amount of request body to swallow. diff --git a/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/web/embedded/TomcatWebServerFactoryCustomizerTests.java b/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/web/embedded/TomcatWebServerFactoryCustomizerTests.java index a0b11d6f6a0..f43cf3210c7 100644 --- a/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/web/embedded/TomcatWebServerFactoryCustomizerTests.java +++ b/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/web/embedded/TomcatWebServerFactoryCustomizerTests.java @@ -184,7 +184,7 @@ class TomcatWebServerFactoryCustomizerTests { @Test void defaultMaxPartCount() { customizeAndRunServer( - (server) -> assertThat(server.getTomcat().getConnector().getMaxPartCount()).isEqualTo(10)); + (server) -> assertThat(server.getTomcat().getConnector().getMaxPartCount()).isEqualTo(50)); } @Test