Uploaded image for project: 'Struts 1'
  1. Struts 1
  2. STR-3096

bufferSize in controller configuration does not work

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 1.3.9
    • Fix Version/s: None
    • Component/s: Core
    • Labels:
      None
    • Environment:
      simple struts web application with file-upload feature

      Description

      Controller configuration allows to set a buffer size to be used when doing file uploads (described in online documentation):

      <controller
      className="..."
      processorClass="..."
      inputForward="true"
      bufferSize="102400"
      >
      ...

      Unfortunately it seems that this value is never propagated to the implementation classes (CommonsMultipartRequestHandler, DiskFileUpload and FileUploadBase)
      from struts and apache commons-fileupload. So the default buffersize (4K) is used which could possibly lead to bad performance (high CPU usage).

      Either the bufferSize should take effect or it should not be available as a configuration attribute.

        Attachments

          Activity

            People

            • Assignee:
              pbenedict Paul Benedict
              Reporter:
              adnovum AdNovum
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: