Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-4726

MaxMultiPartUpload limited to 2GB (Long --> Integer)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.5.8
    • 2.5.10
    • Core, Dispatch Filter
    • None

    Description

      In the following commit, the org.apache.struts2.dispatcher.multipart.AbstractMultiPartRequest.setMaxSize was changed from being a Long to being an Integer. The maxMultiPartSize was calculated in Bytes and thus, by changing the format, it limits the maximum from over 9EB(exabytes) to just around 2GB.

      Worse, the default value appears to have been left probably as Long.MAX_SIZE which means that if no value is provided then you get a NumberFormatException thrown.

      https://git-wip-us.apache.org/repos/asf/struts/repo?p=struts.git;a=commitdiff;h=4de8309d0aebb75d409119f2d4a6d06491dda2b4

      Attachments

        Activity

          People

            lukaszlenart Lukasz Lenart
            abrin adam brin
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: