[Bug 33457] New: Use not atomic file write in avatar cache

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Jan 25 12:59:23 CET 2011


https://bugs.freedesktop.org/show_bug.cgi?id=33457

           Summary: Use not atomic file write in avatar cache
           Product: Telepathy
           Version: unspecified
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: tp-qt4
        AssignedTo: telepathy-bugs at lists.freedesktop.org
        ReportedBy: xclaesse at gmail.com
         QAContact: telepathy-bugs at lists.freedesktop.org


The avatar cache is using not-atomic operation to store the image on-disk. This
means when an avatar is updated, if more than on process is tracking its avatar
data, they will both write the data into the cache at the same time. This is
racy.

For now we could just create a QTemporaryFile then rename it. It's probably not
100% portable, but long-term solution is doing the cache in CM as said in bug
#33410

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.



More information about the telepathy-bugs mailing list