[
https://issues.apache.org/jira/browse/WW-4726?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15765013#comment-15765013
]
Hudson commented on WW-4726:
----------------------------
SUCCESS: Integrated in Jenkins build Struts-JDK7-master #573 (See
[https://builds.apache.org/job/Struts-JDK7-master/573/])
WW-4726 Fixes wrong value type used to limit upload (lukaszlenart: rev
f78d90ee22eed1e898cebefa4565687919b09c30)
* (edit)
core/src/main/java/org/apache/struts2/dispatcher/multipart/AbstractMultiPartRequest.java
* (edit)
plugins/pell-multipart/src/main/java/org/apache/struts2/dispatcher/multipart/PellMultiPartRequest.java
> MaxMultiPartUpload limited to 2GB (Long --> Integer)
> ----------------------------------------------------
>
> Key: WW-4726
> URL: https://issues.apache.org/jira/browse/WW-4726
> Project: Struts 2
> Issue Type: Bug
> Components: Core, Dispatch Filter
> Affects Versions: 2.5.8
> Reporter: adam brin
> Assignee: Lukasz Lenart
> Fix For: 2.5.next
>
>
> 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
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)