Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-4223

jetty8 with solr4.0: In jetty.xml maxFormContentSize configuration needs Fixing

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 4.0
    • Fix Version/s: 4.1, 6.0
    • Component/s: search, Tests
    • Labels:

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                shalinmangar Shalin Shekhar Mangar
                Reporter:
                vnathan Nathan Visagan
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: