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

Inline ContextHandler.MAX_FORM_CONTENT_SIZE_KEY #610

Merged
merged 1 commit into from
May 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/main/java/org/jenkinsci/maven/plugins/hpi/RunMojo.java
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@
import org.eclipse.jetty.security.UserStore;
import org.eclipse.jetty.server.HttpConfiguration;
import org.eclipse.jetty.server.HttpConnectionFactory;
import org.eclipse.jetty.server.handler.ContextHandler;
import org.eclipse.jetty.util.security.Password;
import org.eclipse.jetty.webapp.WebAppClassLoader;
import org.eclipse.jetty.webapp.WebAppContext;
Expand Down Expand Up @@ -317,7 +316,7 @@ public void execute() throws MojoExecutionException, MojoFailureException {
// auto-enable stapler trace, unless otherwise configured already.
setSystemPropertyIfEmpty("stapler.trace", "true");
// allow Jetty to accept a bigger form so that it can handle update center JSON post
setSystemPropertyIfEmpty(ContextHandler.MAX_FORM_CONTENT_SIZE_KEY, "-1");
setSystemPropertyIfEmpty("org.eclipse.jetty.server.Request.maxFormContentSize", "-1");
// general-purpose system property so that we can tell from Jenkins if we are running in the hpi:run mode.
setSystemPropertyIfEmpty("hudson.hpi.run", "true");
// expose the current top-directory of the plugin
Expand Down