René's URL Explorer Experiment


Title: Tomcat's default max part count is too low in 4.0.x · Issue #49311 · spring-projects/spring-boot · GitHub

Open Graph Title: Tomcat's default max part count is too low in 4.0.x · Issue #49311 · spring-projects/spring-boot

X Title: Tomcat's default max part count is too low in 4.0.x · Issue #49311 · spring-projects/spring-boot

Description: Description When upgrading from Spring Boot 3.5.11 to 4.0.3, a multipart request containing multiple parts starts failing with a 413 Payload Too Large error. I investigated the issue and found that it can be resolved by configuring the T...

Open Graph Description: Description When upgrading from Spring Boot 3.5.11 to 4.0.3, a multipart request containing multiple parts starts failing with a 413 Payload Too Large error. I investigated the issue and found that...

X Description: Description When upgrading from Spring Boot 3.5.11 to 4.0.3, a multipart request containing multiple parts starts failing with a 413 Payload Too Large error. I investigated the issue and found that...

Opengraph URL: https://github.com/spring-projects/spring-boot/issues/49311

X: @github

direct link

Domain: redirect.github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Tomcat's default max part count is too low in 4.0.x","articleBody":"### Description\n\nWhen upgrading from Spring Boot 3.5.11 to 4.0.3, a multipart request containing multiple parts starts failing with a `413 Payload Too Large` error.\n\nI investigated the issue and found that it can be resolved by configuring the Tomcat limit for the number of parts (e.g., setting `server.tomcat.max-part-count`). I assume this might be due to a stricter default value introduced in the underlying Tomcat version used by Spring Boot 4.0.x.\n\nI did a text search in the Spring Boot 4.0 Migration Guide but couldn't find any mention of this breaking change or the new default limit. It is possible that it is documented somewhere and I simply missed it. However, if that is the case, it might be a bit difficult for developers to discover.\n\n**My Question & Proposal:**\n\nI would like to ask if this change in default behavior is a bug, an intentional change, or perhaps an issue with how my test is written?\n\n- **If it is a bug:** Please let me know if there is anything I can do to help fix it.\n- **If it is intentional:** I strongly suggest adding a clearer mention of it in [the Spring Boot 4.0 Migration Guide](https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-4.0-Migration-Guide). Without a prominent note, developers might be surprised and confused by sudden 413 errors after upgrading.\n- **If my test implementation is incorrect/outdated for 4.0.x:** I would greatly appreciate any guidance on the proper way to construct this multipart request in the new version.\n\n### Steps to Reproduce\n\nI have created a minimal reproducible example repository here:\n\nhttps://github.com/shayFoo/spring-multi-part\n\nThis repository contains two separate folders to demonstrate the difference in behavior:\n\n- **`demo-multipart-3-5-11` folder:** The test passes successfully (returns 200).\n- **`demo-multipart-4-0-3` folder:** The exact same test fails (returns 413).\n\n**How to reproduce:**\n\n1. Clone the repository: `git clone https://github.com/shayFoo/spring-multi-part.git`\n2. Run the test in the `demo-multipart-4-0-3` project. You will observe the `413 Payload Too Large` error.\n3. Run the test in the `demo-multipart-3-5-11` project. You will see it passes without issues.\n\n### Expected Behavior\nThe test in 4.0.3 should pass with a `200 OK` status, just like it does in Spring Boot 3.5.11. \nIf the default multipart limit has intentionally changed in 4.0.x, it should be explicitly and prominently mentioned in the migration guide along with the relevant property (`server.tomcat.max-part-count`) to configure it.\n\n### Actual Behavior\nThe test fails with a `413 Payload Too Large` error in Spring Boot 4.0.3.\n\n### Workaround\nExplicitly setting `server.tomcat.max-part-count` in `application.properties` (or YAML) resolves the issue in 4.0.3.","author":{"url":"https://github.com/shayFoo","@type":"Person","name":"shayFoo"},"datePublished":"2026-02-24T12:48:24Z","url":"https://github.com/spring-projects/spring-boot/issues/49311"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:8a1fdce1-9516-2b3d-aec0-648e5ff81729
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE590:1258EF:1E086BC:27B17ED:6AEDA2BD
html-safe-nonce8d6978255e33a74f4be4e346e53a763bc2d22b43f282c2b269ac4b4aa55d3177
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNTkwOjEyNThFRjoxRTA4NkJDOjI3QjE3RUQ6NkFFREEyQkQiLCJ2aXNpdG9yX2lkIjoiMzI4NDY5NzU2MTM1MTE2ODcwMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac01554bd285384b2dac6098d94d177d85922b4e3a48666b3b3d4775499d8dabb6
hovercard-subject-tagissue:3983548434
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/spring-projects/spring-boot/49311/issue_layout
twitter:imagehttps://opengraph.githubassets.com/4937477df9528d51af1802f4b5ba1204f907a9144c0c82971ebdc5fa712d3f49/spring-projects/spring-boot/issues/49311
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/4937477df9528d51af1802f4b5ba1204f907a9144c0c82971ebdc5fa712d3f49/spring-projects/spring-boot/issues/49311
og:image:altDescription When upgrading from Spring Boot 3.5.11 to 4.0.3, a multipart request containing multiple parts starts failing with a 413 Payload Too Large error. I investigated the issue and found that...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameshayFoo
hostnamegithub.com
expected-hostnamegithub.com
None9f51e3b6c7a190e426e641ae15acbc58dd1ac2003e96b58879bbc298e213dbf3
turbo-cache-controlno-preview
go-importgithub.com/spring-projects/spring-boot git https://github.com/spring-projects/spring-boot.git
octolytics-dimension-user_id317776
octolytics-dimension-user_loginspring-projects
octolytics-dimension-repository_id6296790
octolytics-dimension-repository_nwospring-projects/spring-boot
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id6296790
octolytics-dimension-repository_network_root_nwospring-projects/spring-boot
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release7060660810b587033ea861b8aa67beb72c8e6542
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://redirect.github.com/spring-projects/spring-boot/issues/49311#start-of-content
https://redirect.github.com/
Sign inhttps://redirect.github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fspring-projects%2Fspring-boot%2Fissues%2F49311
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://redirect.github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fspring-projects%2Fspring-boot%2Fissues%2F49311
Sign uphttps://redirect.github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=spring-projects%2Fspring-boot
Reloadhttps://redirect.github.com/spring-projects/spring-boot/issues/49311
Reloadhttps://redirect.github.com/spring-projects/spring-boot/issues/49311
Reloadhttps://redirect.github.com/spring-projects/spring-boot/issues/49311
spring-projectshttps://redirect.github.com/spring-projects
spring-boothttps://redirect.github.com/spring-projects/spring-boot
Codehttps://redirect.github.com/spring-projects/spring-boot
Issues443 (443)https://redirect.github.com/spring-projects/spring-boot/issues
Pull requests37 (37)https://redirect.github.com/spring-projects/spring-boot/pulls
Actionshttps://redirect.github.com/spring-projects/spring-boot/actions
Wikihttps://redirect.github.com/spring-projects/spring-boot/wiki
Security and qualityhttps://redirect.github.com/spring-projects/spring-boot/security
Insightshttps://redirect.github.com/spring-projects/spring-boot/pulse
https://redirect.github.com/spring-projects/spring-boot
New issuehttps://redirect.github.com/login?return_to=https://github.com/spring-projects/spring-boot/issues/49311
New issuehttps://redirect.github.com/login?return_to=https://github.com/spring-projects/spring-boot/issues/49311
Tomcat's default max part count is too low in 4.0.xhttps://redirect.github.com/spring-projects/spring-boot/issues/49311#top
https://redirect.github.com/wilkinsona
for: upgrade-attentionAn issue requiring extra attention when upgradinghttps://github.com/spring-projects/spring-boot/issues?q=state%3Aopen%20label%3A%22for%3A%20upgrade-attention%22
type: regressionA regression from a previous releasehttps://github.com/spring-projects/spring-boot/issues?q=state%3Aopen%20label%3A%22type%3A%20regression%22
4.0.4https://github.com/spring-projects/spring-boot/milestone/417
https://github.com/shayFoo
shayFoohttps://github.com/shayFoo
on Feb 24, 2026https://github.com/spring-projects/spring-boot/issues/49311#issue-3983548434
the Spring Boot 4.0 Migration Guidehttps://github.com/spring-projects/spring-boot/wiki/Spring-Boot-4.0-Migration-Guide
https://github.com/shayFoo/spring-multi-parthttps://github.com/shayFoo/spring-multi-part
spring-projects-issueshttps://redirect.github.com/spring-projects-issues
status: waiting-for-triageAn issue that has not yet been triaged. Contributions will not be accepted.https://redirect.github.com/spring-projects/spring-boot/issues?q=state%3Aopen%20label%3A%22status%3A%20waiting-for-triage%22
on Feb 24, 2026https://github.com/spring-projects/spring-boot/issues/49311#event-23033823501
wilkinsonahttps://redirect.github.com/wilkinsona
on Feb 24, 2026https://github.com/spring-projects/spring-boot/issues/49311#event-23035668806
wilkinsonahttps://redirect.github.com/wilkinsona
type: regressionA regression from a previous releasehttps://redirect.github.com/spring-projects/spring-boot/issues?q=state%3Aopen%20label%3A%22type%3A%20regression%22
status: waiting-for-triageAn issue that has not yet been triaged. Contributions will not be accepted.https://redirect.github.com/spring-projects/spring-boot/issues?q=state%3Aopen%20label%3A%22status%3A%20waiting-for-triage%22
on Feb 24, 2026https://github.com/spring-projects/spring-boot/issues/49311#event-23035673420
wilkinsonahttps://redirect.github.com/wilkinsona
on Feb 24, 2026https://github.com/spring-projects/spring-boot/issues/49311#event-23035674736
wilkinsonahttps://redirect.github.com/wilkinsona
4.0.xhttps://github.com/spring-projects/spring-boot/milestone/362
on Feb 24, 2026https://github.com/spring-projects/spring-boot/issues/49311#event-23035676519
https://redirect.github.com/wilkinsona
wilkinsonahttps://redirect.github.com/wilkinsona
on Feb 24, 2026https://github.com/spring-projects/spring-boot/issues/49311#issuecomment-3952067030
wilkinsonahttps://redirect.github.com/wilkinsona
for: upgrade-attentionAn issue requiring extra attention when upgradinghttps://redirect.github.com/spring-projects/spring-boot/issues?q=state%3Aopen%20label%3A%22for%3A%20upgrade-attention%22
on Feb 24, 2026https://github.com/spring-projects/spring-boot/issues/49311#event-23039106399
https://redirect.github.com/wilkinsona
wilkinsonahttps://redirect.github.com/wilkinsona
on Feb 24, 2026https://github.com/spring-projects/spring-boot/issues/49311#issuecomment-3952967978
wilkinsonahttps://redirect.github.com/wilkinsona
4.0.xhttps://github.com/spring-projects/spring-boot/milestone/362
4.0.4https://github.com/spring-projects/spring-boot/milestone/417
on Feb 24, 2026https://github.com/spring-projects/spring-boot/issues/49311#event-23039176169
wilkinsonahttps://redirect.github.com/wilkinsona
on Feb 24, 2026https://github.com/spring-projects/spring-boot/issues/49311#event-23039177708
Align server.tomcat.max-part-count default with Tomcat's defaulthttps://github.com/spring-projects/spring-boot/commit/e808d7a7de85bd41079427b76f217f8bf4f19189
https://docs.github.com/articles/closing-issues-via-commit-messages
e808d7ahttps://github.com/spring-projects/spring-boot/commit/e808d7a7de85bd41079427b76f217f8bf4f19189
wilkinsonahttps://redirect.github.com/wilkinsona
completedhttps://redirect.github.com/spring-projects/spring-boot/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
e808d7ahttps://github.com/spring-projects/spring-boot/commit/e808d7a7de85bd41079427b76f217f8bf4f19189
on Feb 24, 2026https://github.com/spring-projects/spring-boot/issues/49311#event-23039178231
Sign up for freehttps://redirect.github.com/signup?return_to=https://github.com/spring-projects/spring-boot/issues/49311
Sign in to commenthttps://redirect.github.com/login?return_to=https://github.com/spring-projects/spring-boot/issues/49311
wilkinsonahttps://redirect.github.com/wilkinsona
for: upgrade-attentionAn issue requiring extra attention when upgradinghttps://github.com/spring-projects/spring-boot/issues?q=state%3Aopen%20label%3A%22for%3A%20upgrade-attention%22
type: regressionA regression from a previous releasehttps://github.com/spring-projects/spring-boot/issues?q=state%3Aopen%20label%3A%22type%3A%20regression%22
4.0.4https://github.com/spring-projects/spring-boot/milestone/417
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.