[wp-trac] [WordPress Trac] #22656: Race conditions in Attachments.more()
WordPress Trac
noreply at wordpress.org
Fri Nov 30 16:08:06 UTC 2012
#22656: Race conditions in Attachments.more()
-------------------------+--------------------------
Reporter: koopersmith | Type: defect (bug)
Status: new | Priority: normal
Milestone: 3.5 | Component: Media
Version: trunk | Severity: normal
Keywords: has-patch |
-------------------------+--------------------------
When a collection of attachments fires off a request for more attachments,
it will pass the request along to its mirrored query and return the
resulting request. The query caches its own request, but the main
attachments group doesn't check to see if that same query is still being
mirrored when the request resolves. This results in a race condition where
we quickly switch mirrored queries and can fire off several requests
within a short time span.
A good way to test this is to go to the media library and type into the
search box quickly — you'll end up seeing duplicate views. The patch
should result in one consistent view.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/22656>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list