hi developers,
the bug is at org.jboss.nukes.servlet.MultipartRequest.java line 68.
I copied here the code of MultipartRequest constructor, please read my comment (in
bold):
public MultipartRequest(HttpServletRequest request, int sizeMax)
throws FileUploadException
{
super(request);
// Create a new file upload handler
DiskFileUpload upload = new DiskFileUpload();
// Set upload parameters
upload.setSizeMax(sizeMax);
// the next statement is wrong because setSizeThreshold
// sets the size limit of the memory stream upload (read apache docs)
// not the max size of the upload.
// Actually, if sizeMax=30MB all files <= 30MB are uploaded in memory!
upload.setSizeThreshold(sizeMax);
upload.setRepositoryPath(System.getProperty("java.io.tmpdir"));
// Get request parameters
for (Enumeration en = request.getParameterNames();en.hasMoreElements();)
{
String name = (String)en.nextElement();
parameters.put(name, request.getParameterValues(name));
}
// Merge with upload fields
for (Iterator i = upload.parseRequest(request).iterator();i.hasNext();)
{
FileItem item = (FileItem)i.next();
if (item.isFormField())
{
parameters.put(item.getFieldName(), new String[]{item.getString()});
}
else
{
files.put(item.getFieldName(), new UploadedFile(item.getContentType(), item.get()));
}
}
}
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3846851#3846851
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3846851
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development