Bug 793884 (JBEPP-957) - Upload file limit not calculated correctly
Summary: Upload file limit not calculated correctly
Keywords:
Status: CLOSED NEXTRELEASE
Alias: JBEPP-957
Product: JBoss Enterprise Portal Platform 5
Classification: JBoss
Component: Portal, Site Publisher
Version: 5.1.0.GA
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 5.1.1.DEV02
Assignee: hfnukal@redhat.com
QA Contact:
URL: http://jira.jboss.org/jira/browse/JBE...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-05-24 10:07 UTC by Martin Weiler
Modified: 2012-02-28 16:25 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-06-07 14:51:54 UTC
Type: Bug


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker JBEPP-957 0 None None None Never

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.



Note You need to log in before you can comment on or make changes to this bug.