#4948: Saving FileField files is not thread-safe
-----------------------+----------------------------------------------------
Reporter:  anonymous   |       Owner:  adrian        
  Status:  new         |   Component:  Core framework
 Version:  SVN         |    Keywords:                
   Stage:  Unreviewed  |   Has_patch:  0             
-----------------------+----------------------------------------------------
 Picking the filename in
 
[http://code.djangoproject.com/browser/django/trunk/django/db/models/base.py#L368
 django.db.modes.Model._save_FIELD_file] is not thread-safe. There is an
 obvious racing condition if one thread will have found a non-existing
 filename and then a second thread will search for a non-existing name
 based on the same filename before the first thread starts to write the
 file.
 
 Because this function is probably most often called from the admin UI and
 the newforms frameworks doesn't support file upload yet, it isn't
 critical. Still, this kind of problems can cause difficult to debug
 problems.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/4948>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to