Upgrade to Tomcat 10.1.42.
Comment From: wilkinsona
Re-opened to add support for configuring max part count and max part header size.
Comment From: daliborfilus
I have a form with just 25 fields (no files). I send it as multipart/form-data and I trigger FileCountLimitExceededException. Tomcat's default is "unlimited" (at least according to the code itself, don't know if it's overridden during runtime). Your default is 10, correct?
So everyone who upgraded to 3.4.7 and has a form larger than 10 fields (e.g. a form with 10 text fields and zero or one file input) is now just as surprised as me?
Isn't this a breaking change that shouldn't be even present in a patch release then? If the limit was set to "unlimited" by default, then it wouldn't break anything.
EDIT: I see this was already discussed in https://github.com/spring-projects/spring-boot/issues/45881. Nevermind then. Although the fact that it applies even to forms without files may be surprising to some, too. I think it should be also mentioned on the page the https://spring.io/blog/2025/06/19/spring-boot-3-4-7-available-now
Comment From: wilkinsona
It's prominently mentioned at the top of the changelog to which the blog post already links.