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

Use correct key for Request.maxFormContentSize #605

Merged
merged 1 commit into from
Jun 10, 2023

Conversation

basil
Copy link
Member

@basil basil commented Jun 5, 2023

Recent versions of Jetty, which we have been using since 2016 or so, use org.eclipse.jetty.server.Request.maxFormContentSize rather than org.mortbay.jetty.Request.maxFormContentSize to set the maximum form content size. While I was here I also updated this to use a constant rather than a hard-coded string to make this code easier to maintain going forward. I tested this in Jenkins core and BOM and it did not make anything worse. While I am not fully convinced this setting is still needed, I am also not fully convinced that this setting is not needed either. Making the code work as intended (rather than as it was working previously) seems to be at least a mildly positive step in the right direction in the sense of improving readability. If someone can clearly demonstrate with certainty that this code is not needed then it could be removed entirely in the future.

basil added a commit to basil/jenkins that referenced this pull request Jun 6, 2023
basil added a commit to basil/bom that referenced this pull request Jun 6, 2023
@basil basil marked this pull request as ready for review June 8, 2023 00:10
@basil basil merged commit 6f97169 into jenkinsci:master Jun 10, 2023
13 checks passed
@basil basil deleted the maxFormContentSize branch June 10, 2023 18:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant