New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It is unclear that server.tomcat.max-http-post-size and server.jetty.max-http-post-size only apply to POSTed form content #18521
Comments
@fg8dgrdh, this is the issue tracker for the core Spring Framework. For Spring Boot, please use the following issue tracker: https://github.com/spring-projects/spring-boot/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc |
@snicoll can I make a PR for this? |
Thanks for the offer. The issue has been triaged and isn't assigned at the moment so feel free to do it |
Updated the Javadoc in the |
Changed the javadoc for server.tomcat.max-http-post-size to clarify that the 2MB maximum size limit only applies to POST request with FORM content. Fixes spring-projectsgh-18521
We have a similar problem with Jetty. The property, Undertow is also affected but the problem is different. The property, Given that we need to deprecate |
@sbrannen Sorry about opening the issue in the wrong project, I'll try and be more careful next time. @snicoll Thanks for transferring the ticket, I appreciate it. @rhamedy Thanks for the PR! @wilkinsona I like the max-http-form-post-size idea |
IMO, deprecation seem to be the more suiting fix based on wikinsona’s explanation. Regardless, I would be happy to re-purpose the PR should the scope of this issue change 👌 |
#18555 is related to, or maybe even a duplicate of, the Undertow aspects of this. |
We're going to introduce new properties in 2.1.x:
We'll deprecate the old, misleadingly named properties at the same time. We'll use #18555 to figure out the Undertow side of this once we know if the multipart config element behaviour is intentional or a bug. |
@wilkinsona aren't they already named that way? 😕
I could update my PR and base it off |
Sorry, I meant to include |
Closing in favour of #18566. |
…ments Due to the unclarity that properties server.tomcat.max-http-post-size and server.jetty.max-http-post-size only apply to POSTed form content, the two properties are deprecated in favor of newly introduced server properties server.tomcat.max-http-form-post-size & server.jetty.max-http-form-post-size. Fixes spring-projectsgh-18521
Due to the unclarity that properties server.tomcat.max-http-post-size and server.jetty.max-http-post-size only apply to POSTed form content, the two properties are deprecated in favor of newly introduced server properties server.tomcat.max-http-form-post-size & server.jetty.max-http-form-post-size. Fixes spring-projectsgh-18521
Hello, i have tried writing this
and this in application.properties file
it is still not passing text(json which includes base64 text too) of more then 2MB from html to controller. Why is this happening? Please help |
Unfortunately, I can't say why it's happening from a couple of code snippets. We need to see more of your application – for example exactly how the browser is sending the information to the controller – but a closed issue isn't the right place. As mentioned in the guidelines for contributing, we prefer to use GitHub issues only for bugs and enhancements. If you believe that you've found a bug, and you would like us to spend some more time investigating, please open a new issue and spend some time providing a complete yet minimal sample that reproduces the problem. You can share it with us by pushing it to a separate repository on GitHub or by zipping it up and attaching it to the issue that you open. |
Hello sir @wilkinsona , i have created a new issue(#22724), kindly requesting you to take a look. Thank you so much in advance. |
The documentation describes the following:
However this setting only affects post requests with FORM content, not all post requests. This can lead to confusion for myself and others (as per stackoverflow questions). A more precise description would be helpful, such as:
The text was updated successfully, but these errors were encountered: