[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
Sun Mar 11 23:34:34 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):

 Looked around class-wp-xmlrpc-server.php, specifically in
 mw_newMediaObject(), but haven't spotted a particularly obvious way to
 accomplish this that would also stay in sync with the regular upload
 function - maintaining two versions of the file-changing code is cringe-
 worthy at best, and if two places are able to upload files without common
 bits, I'm getting nervous that there's a third one I'm not realizing at
 the moment.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/20057#comment:9>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list