From a8ccdd07392d7d239b8bb64c0989a02ebda70fe3 Mon Sep 17 00:00:00 2001 From: Frank Wennerdahl Date: Fri, 16 May 2014 14:37:24 +0200 Subject: [PATCH] Added system property refine.max_form_content_size To allow configuring the maximum allowed form content size in Jetty. --- server/src/com/google/refine/Refine.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/src/com/google/refine/Refine.java b/server/src/com/google/refine/Refine.java index 99500ee9c..a5aa349b9 100644 --- a/server/src/com/google/refine/Refine.java +++ b/server/src/com/google/refine/Refine.java @@ -182,10 +182,11 @@ class RefineServer extends Server { } final String contextPath = Configurations.get("refine.context_path","/"); + final int maxFormContentSize = Configurations.getInteger("refine.max_form_content_size", 1048576); logger.info("Initializing context: '" + contextPath + "' from '" + webapp.getAbsolutePath() + "'"); WebAppContext context = new WebAppContext(webapp.getAbsolutePath(), contextPath); - context.setMaxFormContentSize(1048576); + context.setMaxFormContentSize(maxFormContentSize); this.setHandler(context); this.setStopAtShutdown(true);