Skip to content
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

Closed
wants to merge 2 commits into from

Conversation

qingbozhang
Copy link
Contributor

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?

@pivotal-cla
Copy link

@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.

@pivotal-cla
Copy link

@qingbozhang Thank you for signing the Contributor License Agreement!

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Sep 25, 2024
@wilkinsona wilkinsona changed the title feat: add maxFormKeys for jetty Provide a configuration property for configuring Jetty's max form keys Sep 25, 2024
@qingbozhang
Copy link
Contributor Author

Hi I’d appreciate a review when you have a moment. Thanks!

@wilkinsona
Copy link
Member

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.

@qingbozhang
Copy link
Contributor Author

OK, thank you

Copy link
Member

@snicoll snicoll left a 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.

@snicoll snicoll added the status: waiting-for-feedback We need additional information before we can continue label Sep 30, 2024
@qingbozhang
Copy link
Contributor Author

Thanks for the PR, please review the comments when time permits.

Thanks for the feedback! I've made the suggested changes. Please let me know if anything else is needed.

@spring-projects-issues spring-projects-issues added status: feedback-provided Feedback has been provided and removed status: waiting-for-feedback We need additional information before we can continue labels Oct 2, 2024
philwebb pushed a commit that referenced this pull request Oct 3, 2024
Add a new 'server.jetty.max-form-key' property that can be used to
configure Jetty's Handler.setMaxFormKeys(...).

See gh-42448
@philwebb philwebb closed this in f29d492 Oct 3, 2024
@philwebb
Copy link
Member

philwebb commented Oct 3, 2024

Thanks very much @qingbozhang

@philwebb philwebb added type: enhancement A general enhancement and removed status: waiting-for-triage An issue we've not yet triaged status: feedback-provided Feedback has been provided labels Oct 3, 2024
@philwebb philwebb added this to the 3.4.0-RC1 milestone Oct 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement A general enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants