home / django_tickets / tickets

tickets: 7844

This data as json

id created changetime last_pulled_from_trac stage status component type severity version resolution summary description owner reporter keywords easy has_patch needs_better_patch needs_tests needs_docs ui_ux
7844 2008-07-19 22:07:27 2011-11-04 11:52:10 2022-03-06 03:40:42.470347 Accepted closed Core (Other) Bug Normal dev fixed Very small race condition in file field saving 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. nobody mtredinnick   0 0 0 0 0 0
Powered by Datasette · Queries took 0.758ms