-
Notifications
You must be signed in to change notification settings - Fork 40.8k
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
Provide a configuration property for configuring Jetty's max form keys #42448
Conversation
@qingbozhang Please sign the Contributor License Agreement! Click here to manually synchronize the status of this Pull Request. See the FAQ for frequently asked questions. |
@qingbozhang Thank you for signing the Contributor License Agreement! |
Hi I’d appreciate a review when you have a moment. Thanks! |
We're a small team with many different priorities. Expecting a review within two days of opening a PR isn't realistic. Someone will review this when we have time. Thank you for your patience in the meantime. |
OK, thank you |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR, please review the comments when time permits.
...autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/ServerProperties.java
Outdated
Show resolved
Hide resolved
...autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/ServerProperties.java
Outdated
Show resolved
Hide resolved
...ava/org/springframework/boot/autoconfigure/web/embedded/JettyWebServerFactoryCustomizer.java
Show resolved
Hide resolved
...ava/org/springframework/boot/autoconfigure/web/embedded/JettyWebServerFactoryCustomizer.java
Show resolved
Hide resolved
Thanks for the feedback! I've made the suggested changes. Please let me know if anything else is needed. |
Add a new 'server.jetty.max-form-key' property that can be used to configure Jetty's Handler.setMaxFormKeys(...). See gh-42448
Thanks very much @qingbozhang |
I encountered an issue in the project related to form submissions, where the number of keys exceeded Jetty's default limit of 1000. I found that there's no way to configure this parameter in the Spring Boot configuration file.
Although I achieved my goal by setting
org.eclipse.jetty.server.Request.maxFormKeys
, it doesn't feel like an ideal solution.May I submit a PR to add this configuration option?