Django

Code

Ticket #3104 (closed: invalid)

Opened 2 years ago

Last modified 1 year ago

AttributeError: 'NoneType' object has no attribute 'split'

Reported by: anonymous Assigned to: nobody
Milestone: Component: Core framework
Version: Keywords:
Cc: Triage Stage: Accepted
Has patch: 0 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

Description

This is actually a ticket just to give a pointer to the root cause, which is a bug in python's email module, which Django uses to parse multi-part form uploads.

The python bug has a patch on it.

Here's the traceback:

 File "/pegasus/code/current/django/utils/httpwrappers.py", line 46,
in parse_file_upload
  name_dict = parse_header(submessage['Content-Disposition'])[1]

 File "/usr/lib/python2.4/cgi.py", line 331, in parse_header
  plist = map(lambda x: x.strip(), line.split(';'))

AttributeError: 'NoneType' object has no attribute 'split'

Attachments

Change History

01/30/07 11:41:41 changed by Gary Wilson <gary.wilson@gmail.com>

  • stage changed from Unreviewed to Accepted.

10/26/07 23:55:41 changed by mtredinnick

  • status changed from new to closed.
  • resolution set to invalid.

The Python bug referenced has been marked private, so now we have even less information than before to understand what's going on here. If this problem is still a problem, can somebody reopen with (a) a title that is a bit more explanatory, (b) an explanation of what the problem is and how to repeat it.


Add/Change #3104 (AttributeError: 'NoneType' object has no attribute 'split')




Change Properties
Action