[wp-trac] [WordPress Trac] #20057: Media upload for multi-webserver setups introduces a nasty race condition that could corrupt uploaded files
WordPress Trac
wp-trac at lists.automattic.com
Wed Jul 25 10:07:39 UTC 2012
#20057: Media upload for multi-webserver setups introduces a nasty race condition
that could corrupt uploaded files
--------------------------+------------------------------
Reporter: archon810 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Media | Version: 3.3.1
Severity: major | Resolution:
Keywords: |
--------------------------+------------------------------
Comment (by archon810):
Just tried sanitize_file_name, but it fires twice (at least during the
xmlrpc method). I also tried to use the filter from
https://core.trac.wordpress.org/attachment/ticket/19121/19121.2.patch, but
that results in the same file being overwritten over and over (much worse)
because the file name is modified too late and doesn't trigger a
uniqueness check. My head is starting to spin from all the inconsistencies
between the two upload functions (though it's probably three - there's one
in atom-server too) and the side effects.
Any further suggestions, Sergey?
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20057#comment:13>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list