Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 09ECE200BEF for ; Tue, 20 Dec 2016 19:07:01 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 08CD5160B29; Tue, 20 Dec 2016 18:07:01 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 846BC160B33 for ; Tue, 20 Dec 2016 19:07:00 +0100 (CET) Received: (qmail 81227 invoked by uid 500); 20 Dec 2016 18:06:58 -0000 Mailing-List: contact issues-help@struts.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@struts.apache.org Delivered-To: mailing list issues@struts.apache.org Received: (qmail 80955 invoked by uid 99); 20 Dec 2016 18:06:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Dec 2016 18:06:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id A366C2C2AB6 for ; Tue, 20 Dec 2016 18:06:58 +0000 (UTC) Date: Tue, 20 Dec 2016 18:06:58 +0000 (UTC) From: "Lukasz Lenart (JIRA)" To: issues@struts.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (WW-4726) MaxMultiPartUpload limited to 2GB (Long --> Integer) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 20 Dec 2016 18:07:01 -0000 [ https://issues.apache.org/jira/browse/WW-4726?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15764838#comment-15764838 ] Lukasz Lenart commented on WW-4726: ----------------------------------- Yeah, you're right, my mistake :( Fix is under way :) > 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 > 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)