[
https://issues.apache.org/jira/browse/SOLR-4223?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13537025#comment-13537025
]
Nathan Visagan edited comment on SOLR-4223 at 12/20/12 6:20 PM:
----------------------------------------------------------------
It does not work in jetty.xml.
{code}
<Call name="setMaxFormContentSize">
<Arg>400000</Arg>
</Call>
{code}
No method called setMaxFormContentSize is found in class
org.eclipse.jetty.server.Server
But you can do
{code}
<Configure class="org.eclipse.jetty.webapp.WebAppContext">
<Set name="maxFormContentSize">400000</Set>
</Configure>
{code}
in web-jetty.xml. But this is a setting file in WEB-INF folder which can
override the settings mentioned in jetty.xml.
was (Author: vnathan):
It does not work.
{code}
<Call name="setMaxFormContentSize">
<Arg>400000</Arg>
</Call>
{code}
No Method called setMaxFormContentSize on class org.eclipse.jetty.server.Server
But you cam do
{code}
<Configure class="org.eclipse.jetty.webapp.WebAppContext">
<Set name="maxFormContentSize">400000</Set>
</Configure>
{code}
in web-jetty.xml. But that is an override for the reported setting.
> jetty8 with solr4.0: In jetty.xml maxFormContentSize configuration needs
> Fixing
> -------------------------------------------------------------------------------
>
> Key: SOLR-4223
> URL: https://issues.apache.org/jira/browse/SOLR-4223
> Project: Solr
> Issue Type: Bug
> Components: search, Tests
> Affects Versions: 4.0
> Reporter: Nathan Visagan
> Assignee: Shalin Shekhar Mangar
> Priority: Minor
> Labels: configuration
>
> In jetty.xml, the cofiguration to set the maximum form content size does not
> work, because jetty contextHandler reads System property
> org.eclipse.jetty.server.Request.maxFormContentSize.
> In CotextHandler.java line 137, the method call
> "Integer.getInteger("org.eclipse.jetty.server.Request.maxFormContentSize",200000).intValue();"
> returns always the default value 200000 regardless what is set below.
> So instead of:
> <Call name="setAttribute">
> <Arg>org.eclipse.jetty.server.Request.maxFormContentSize</Arg>
> <Arg>400000</Arg>
> </Call>
> Replace with:
> <Call class="java.lang.System" name="setProperty">
> <Arg>org.eclipse.jetty.server.Request.maxFormContentSize</Arg>
> <Arg>400000</Arg>
> </Call>
> PS:
> There are other ways to set this config limit in commandline like
> -Dorg.eclipse.jetty.server.Request.maxFormContentSize=700000 or in
> web-jetty.xml which works fine.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]