Issue Details (XML | Word | Printable)

Key: WW-1549
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: Don Brown
Reporter: Tomas Carlsson
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Struts 2

File upload with JakartaMultipartRequest fails if file size less than DiskFileItem.sizeThreshold

Created: 08/Dec/06 12:40 PM   Updated: 29/Jul/07 08:05 AM
Return to search
Component/s: Core Interceptors
Affects Version/s: 2.0.10, 2.1.0
Fix Version/s: 2.0.2

File Attachments:
  Size
GZip Archive Licensed for inclusion in ASF works s2_28850.patch.gz 2006-12-08 12:44 PM Tomas Carlsson 0.7 kB
Text File Licensed for inclusion in ASF works s2_28850_v2.patch 2006-12-08 01:01 PM Tomas Carlsson 1 kB
Environment: Win XP, J2SE 1.5.0_08, struts-core-2.0.2-SNAPSHOT (Dec 07)

Flags: Patch


 Description  « Hide
commons-fileupload DiskFileItem will not write any data to the file system until its sizeThreshold has been reached. This is not considered in JakartaMultipartRequest. It should check this when getting the File object that is later injected to an Action.

 All   Comments   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Repository Revision Date User Message
Struts #484695 Fri Dec 08 18:38:58 UTC 2006 mrdon Fixed max file size in file upload to actually limit files
WW-1549
Files Changed
MODIFY /struts/struts2/trunk/core/src/main/java/org/apache/struts2/dispatcher/multipart/JakartaMultiPartRequest.java