Bug 793884 (JBEPP-957)

Summary: Upload file limit not calculated correctly
Product: [JBoss] JBoss Enterprise Portal Platform 5 Reporter: Martin Weiler <mweiler>
Component: Portal, Site PublisherAssignee: hfnukal <hfnukal>
Status: CLOSED NEXTRELEASE QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: 5.1.0.GACC: epp-bugs
Target Milestone: ---   
Target Release: 5.1.1.DEV02   
Hardware: Unspecified   
OS: Unspecified   
URL: http://jira.jboss.org/jira/browse/JBEPP-957
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-06-07 14:51:54 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Martin Weiler 2011-05-24 10:07:47 UTC
Help Desk Ticket Reference: https://na7.salesforce.com/500A0000007B660
project_key: JBEPP

Platform issue for EXOGTN-268: Currently it is possible to upload a file between 10 and 11 MB, although the limit is set to 10 MB.

The following fix needs to be ported to the platform to address this:

Index: component/web/server/src/main/java/org/exoplatform/upload/UploadService.java
===================================================================
--- component/web/server/src/main/java/org/exoplatform/upload/UploadService.java        (revision 5860)
+++ component/web/server/src/main/java/org/exoplatform/upload/UploadService.java        (working copy)
@@ -256,7 +256,8 @@
          limitMB = uploadLimitsMB_.get(upResource.getUploadId()).intValue();
       }
 
-      int estimatedSizeMB = (int)((contentLength / 1024) / 1024);
+      double estimatedSizeMB = (contentLength / 1024) / 1024;

Comment 1 Scott Mumford 2011-06-01 04:47:50 UTC
The above Release Notes text needs technical verification. 

Comment 2 Scott Mumford 2011-06-01 04:47:50 UTC
Release Notes Docs Status: Added: Documented as Known Issue
Release Notes Text: Added: Proposed 'Known Issues' text:

A bug in the Site Publisher code prevents the system from correctly calculating the size of an upload. This may allow files that do not adhere to the 10MB size limit to be uploaded. A fix is in development.


Comment 3 hfnukal@redhat.com 2011-06-07 14:52:35 UTC
Release Notes Docs Status: Removed: Documented as Known Issue Added: Documented as Resolved Issue
Release Notes Text: Removed: Proposed 'Known Issues' text:

A bug in the Site Publisher code prevents the system from correctly calculating the size of an upload. This may allow files that do not adhere to the 10MB size limit to be uploaded. A fix is in development. Added: Proposed 'Known Issues' text:

A bug in the Site Publisher code prevents the system from correctly calculating the size of an upload. This may allow files that do not adhere to the 10MB size limit to be uploaded.


Comment 4 Scott Mumford 2011-08-05 06:30:11 UTC
Release Notes Text: Removed: Proposed 'Known Issues' text:

A bug in the Site Publisher code prevents the system from correctly calculating the size of an upload. This may allow files that do not adhere to the 10MB size limit to be uploaded. Added: A bug in the Site Publisher code prevents the system from correctly calculating the size of an upload. This may allow files that do not adhere to the 10MB size limit to be uploaded.