#7844: Very small race condition in file field saving
----------------------------+-----------------------------------------------
 Reporter:  mtredinnick     |       Owner:  nobody    
   Status:  new             |   Milestone:            
Component:  Core framework  |     Version:  SVN       
 Keywords:                  |       Stage:  Unreviewed
Has_patch:  0               |  
----------------------------+-----------------------------------------------
 Noticed this whilst reading `Model._save_FIELD_file()` for another reason.
 The directory name used to save the file can be sensitive to the current
 datetime value, since `upload_to` directories can contain format strings.
 This directory name is computed a couple of times in this function, from
 what I can work out: once when creating the directories at the top of the
 function and once when call `field.get_filename()`.

 It's possible that the time delay between creating the directory and using
 the directory lower down could be sufficiently long that the name actually
 changes. For example, using day-based formats and then clock crosses
 midnight. The directory name should be the same throughout the code.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/7844>
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