﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
23887	Invalid multipart boundary causes internal server error	Tim Graham	Claude Paroz	"Reported by Antti Häyrynen and verified by me.

In http/request.py `_load_post_and_files` when calling `self.parse_file_upload` failures raise `MultiPartParserError`, which causes http request handler to throw 500 in case multipart has something wrong (invalid boundary and apparently negative content length). I think bad request would be better response to this.

Attached is a sample HTTP request, which has a bell in mime boundary that makes django return 500.

To reproduce (you must have the admin installed so /admin/login/ doesn't 404):
{{{
$ nc 127.0.0.1 8000 < beep-500.httpreq
}}}"	Bug	closed	HTTP handling	1.7	Normal	fixed			Ready for checkin	1	0	0	0	0	0
