in nukes at org.jboss.nukes.servlet.MultipartRequest line 68.

this is the code, please read my comment:

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.

      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=3840968#3840968

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3840968


-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to