#22656 closed defect (bug) (fixed)
Race conditions in Attachments.more()
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 3.5 | Priority: | normal |
Severity: | normal | Version: | 3.5 |
Component: | Media | Keywords: | has-patch |
Focuses: | Cc: |
Description
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.
Attachments (3)
Change History (8)
#2
@
12 years ago
It's less with the patch but still exists: http://cl.ly/LGTJ.
#3
@
12 years ago
Latest also fixes a race condition in the attachments browser view by making it properly clean up its content components.
Patch also adds
Attachments.hasMore()
and prevents the infinite scroll scanner from perpetually checking for new attachments when all of them had already loaded.