SOLR-4223: "maxFormContentSize" in jetty.xml is not picked up by jetty 8

so set it via solr webapp context file

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1425683 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Shalin Shekhar Mangar 2012-12-24 21:08:44 +00:00
parent 8a7c585a15
commit 6a0f11ebed
3 changed files with 12 additions and 2 deletions

View File

@ -381,6 +381,9 @@ Bug Fixes
* SOLR-4133: Cannot "set" field to null with partial updates when using the
standard RequestWriter. (Will Butler, shalin)
* SOLR-4223: "maxFormContentSize" in jetty.xml is not picked up by jetty 8
so set it via solr webapp context file. (shalin)
Other Changes
----------------------

View File

@ -5,4 +5,6 @@
<Set name="war"><SystemProperty name="jetty.home"/>/webapps/solr.war</Set>
<Set name="defaultsDescriptor"><SystemProperty name="jetty.home"/>/etc/webdefault.xml</Set>
<Set name="tempDirectory"><Property name="jetty.home" default="."/>/solr-webapp</Set>
<!-- Increase the maximum POST size to 1 MB to be able to handle large shard requests -->
<Set name="maxFormContentSize">1000000</Set>
</Configure>

View File

@ -13,11 +13,16 @@
<Configure id="Server" class="org.eclipse.jetty.server.Server">
<!-- Increase the maximum POST size to 1 MB to be able to handle large shard requests -->
<!-- allthough documented as the correct way to set the max POST size for
all webapps in a single server, this doesn't actaully work.
So instead it is set on the WebAppContext.
-->
<!--
<Call name="setAttribute">
<Arg>org.eclipse.jetty.server.Request.maxFormContentSize</Arg>
<Arg>200000</Arg>
<Arg>1000000</Arg>
</Call>
-->
<!-- =========================================================== -->
<!-- Server Thread Pool -->
<!-- =========================================================== -->