LazyStream raises SuspiciousOperation in newforms-admin with upload object edited inline
|Reported by:||bryan||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
I have a model called Listing, and a model called Photo containing an ImageField and a ForeignKey to Listing.
Listing is managed using newforms-admin with Photo edited inline, extra=3.
In this case, LazyStream in multipartparser.py raises SuspiciousOperation when saving a Listing in newforms-admin, whenever there are more than a couple Photos associated with a Listing. The exception gets raised regardless of whether new files are being uploaded.
The exception message is: The multipart parser got stuck, which shouldn't happen with normal uploaded files. Check for malicious upload activity; if there is none, report this to the Django developers.