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.
-
- icefacesBugReport_src.zip
- 10 kB
- Ed Hillmann
-
Hide
- icefacesBugReport-1.0-SNAPSHOT.war
- 5.73 MB
- Ed Hillmann
-
- META-INF/MANIFEST.MF 0.1 kB
- WEB-INF/faces-config.xml 0.5 kB
- WEB-INF/sun-web.xml 0.5 kB
- WEB-INF/navigation.xml 0.3 kB
- WEB-INF/classes/.../BackingBean.class 2 kB
- WEB-INF/classes/.../CustomServlet.class 2 kB
- WEB-INF/managed-beans.xml 0.5 kB
- WEB-INF/lib/log4j-1.2.14.jar 359 kB
- WEB-INF/.../backport-util-concurrent-2.2.jar 319 kB
- WEB-INF/lib/commons-fileupload-1.2.1.jar 56 kB
- WEB-INF/lib/commons-logging-api-1.1.jar 44 kB
- WEB-INF/lib/jxl-2.6.8.jar 706 kB
- WEB-INF/lib/commons-logging-1.1.jar 52 kB
- WEB-INF/lib/icefaces-1.8.1-sv-1.3.jar 1.06 MB
- WEB-INF/.../icefaces-facelets-1.8.1-sv-1.3.jar 596 kB
- WEB-INF/lib/commons-beanutils-1.8.0.jar 226 kB
- WEB-INF/lib/commons-collections-3.2.jar 558 kB
- WEB-INF/.../icefaces-comps-1.8.1-sv-1.3.jar 1.93 MB
- WEB-INF/lib/FastInfoset-1.2.2.jar 285 kB
- WEB-INF/lib/el-api-1.0.jar 24 kB
- WEB-INF/lib/commons-digester-1.8.jar 140 kB
- WEB-INF/web.xml 4 kB
- index.jsp 0.2 kB
- icefacesBugReport.xhtml 0.9 kB
- META-INF/maven/.../icefacesBugReport/pom.xml 4 kB
- META-INF/maven/.../pom.properties 0.1 kB
Activity
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
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)