Details
-
Type: Bug
-
Status: Open
-
Priority: Major
-
Resolution: Unresolved
-
Affects Version/s: 1.8.2-EE-GA_P01
-
Fix Version/s: None
-
Component/s: ICE-Components
-
Labels:None
-
Environment:Linux dingbat 2.6.18-128.el5 #1 SMP Wed Jan 21 08:45:05 EST 2009 x86_64 x86_64 x86_64 GNU/Linux
Firefox 3.6
IE 8
Description
We have code that has been using the InputFile component. We have noticed a recent change. If a user attempts to upload a file that is larger than the maximum size, the InputFile.getSizeMax() method always returns 0. This used to return the maximum size that a file could be to be uploaded.
The behaviour seems correct (uploading a file less than the maximum works, attempts to upload a file larger than the prescibed maximum fail). However, we're using this value in order to state why the upload was prevented. And we can no longer provide the maximum size as part of the message.
The behaviour seems correct (uploading a file less than the maximum works, attempts to upload a file larger than the prescibed maximum fail). However, we're using this value in order to state why the upload was prevented. And we can no longer provide the maximum size as part of the message.
Activity
Ed Hillmann
created issue -
Ed Hillmann
made changes -
Field | Original Value | New Value |
---|---|---|
Attachment | icefacesBugReport-1.0-SNAPSHOT.war [ 12458 ] | |
Attachment | icefacesBugReport_src.zip [ 12459 ] |
I've attached a web application that reproduces this error for us. The steps to perform are:
1) Run the app
2) Select a file larger than 10Mb using the browse button
3) Click the Upload button
4) Check server.log file and you should see "SIZE_LIMIT_EXCEEDED - 0" instead of "SIZE_LIMIT_EXCEEDED - 10485760" (or whatever value was defined for the uploadMaxFileSize context-param in the web.xml)