Solr
  1. Solr
  2. SOLR-4223

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

    Details

      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.

        Issue Links

          Activity

          Steve Rowe made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Uwe Schindler made changes -
          Link This issue is superceded by SOLR-4265 [ SOLR-4265 ]
          Shalin Shekhar Mangar made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Fix Version/s 5.0 [ 12321664 ]
          Resolution Fixed [ 1 ]
          Hoss Man made changes -
          Attachment SOLR-4223.patch [ 12562203 ]
          Yonik Seeley made changes -
          Fix Version/s 4.1 [ 12321141 ]
          Shalin Shekhar Mangar made changes -
          Assignee Shalin Shekhar Mangar [ shalinmangar ]
          Nathan Visagan made changes -
          Field Original Value New Value
          Summary jetty8 with solr4.0: In jetty.xml maxFormContentSize configuration needs changing jetty8 with solr4.0: In jetty.xml maxFormContentSize configuration needs Fixing
          Nathan Visagan created issue -

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development