On Jun 27, 2006, at 11:52 AM, Lenny G Arbage wrote:
Did you create a bug about it when you found it in 0.1? If not could you? Because I didn't know about any such issue, and I'm guessing neither did anyone else. Assign it to me and I'll look into it this evening after work (any code you have to reproduce such an issue would be helpful it doesn't necessarily have to be in the form of a unittest but if you can do that it'd be awesome.)
I just found it yesterday (in 0.1) and thought I should upgrade to 0.2 before bugging anyone about it.
The failing with > 10MB is intentional, but the hanging is not. It's supposed to return an error response to the client. In fileupload.py: 233, parseMultipartFormData has arguments which limit the number of fields and the size of the uploaded data. The default limit for size is 10MB. Unfortunately, it looks like there is no way to pass in different limits to fileupload.parseMultipartFormData from where it's called in server.parsePOSTData. So there's two bugs here: 1) hangs instead of returning a response. 2) limit is not configurable. James