﻿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
9014	django admin MultiPartParserError in google chrome	aliixx	nobody	"Following exception gets thrown in google chrome when you either save and continue editing or save and add another for any item in the django admin.
tested in Firefox 3 and IE 8 beta and i cannot replicate the error. Maybe its an issue with the way Chrome handles multipart form posts.

{{{
Environment:

Request Method: GET
Request URL: http://....
Django Version: 1.0-final-SVN-unknown
Python Version: 2.5.2
Installed Applications:
['django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.sites',
 'django.contrib.admin',
 'django.contrib.admindocs',
 'django.contrib.flatpages',
 'bbs.clients',
 'bbs.channels',
 'bbs.advertisers']
Installed Middleware:
('django.middleware.common.CommonMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.middleware.doc.XViewMiddleware',
 'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware')


Traceback:
File ""C:\Python25\Lib\site-packages\django\core\handlers\base.py"" in get_response
  86.                 response = callback(request, *callback_args, **callback_kwargs)
File ""C:\Python25\Lib\site-packages\django\contrib\admin\sites.py"" in root
  158.                 return self.model_page(request, *url.split('/', 2))
File ""C:\Python25\lib\site-packages\django\views\decorators\cache.py"" in _wrapped_view_func
  44.         response = view_func(request, *args, **kwargs)
File ""C:\Python25\Lib\site-packages\django\contrib\admin\sites.py"" in model_page
  177.         return admin_obj(request, rest_of_url)
File ""C:\Python25\Lib\site-packages\django\contrib\auth\admin.py"" in __call__
  42.         return super(UserAdmin, self).__call__(request, url)
File ""C:\Python25\Lib\site-packages\django\contrib\admin\options.py"" in __call__
  197.             return self.change_view(request, unquote(url))
File ""C:\Python25\Lib\site-packages\django\db\transaction.py"" in _commit_on_success
  238.                 res = func(*args, **kw)
File ""C:\Python25\Lib\site-packages\django\contrib\admin\options.py"" in change_view
  570.         if request.POST and request.POST.has_key(""_saveasnew""):
File ""C:\Python25\Lib\site-packages\django\core\handlers\modpython.py"" in _get_post
  107.             self._load_post_and_files()
File ""C:\Python25\Lib\site-packages\django\core\handlers\modpython.py"" in _load_post_and_files
  81.                 self._post, self._files = self.parse_file_upload(self.META, self._req)
File ""C:\Python25\Lib\site-packages\django\http\__init__.py"" in parse_file_upload
  123.         parser = MultiPartParser(META, post_data, self.upload_handlers, self.encoding)
File ""C:\Python25\Lib\site-packages\django\http\multipartparser.py"" in __init__
  82.             raise MultiPartParserError(""Invalid content length: %r"" % content_length)

Exception Type: MultiPartParserError at /admin/auth/user/2/
Exception Value: Invalid content length: 0

}}}"		new	Uncategorized	1.0					Unreviewed	0	0	0	0	0	0
