Mantis - Resin
Viewing Issue Advanced Details
4638 minor always 06-22-11 10:56 06-28-11 11:14
ferg  
ferg  
normal  
closed 3.1.6  
fixed  
none    
none 4.0.20  
0004638: multipart-mime with length limit
(rep by Daniel Kador)


I think there?s one more thing we need before we can put this issue to rest. Resin automatically stores the non-binary parts of multipart requests in memory. If somebody sends us a very large request, we could OOM. I?d like to have a parameter we can control that will determine the max allowed size of a non-binary part. If the size is over said limit, throw an IOException and fill in the ?caucho.multipart.form.error? request attribute with what went wrong.

Is that feasible? Let me know if I missed an option that already exists to control this behavior.

Notes
(0005337)
ferg   
06-28-11 11:14   
server/1630