[Bug 70010] New: race condition in async avatar saving can lead to misleading signals

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Oct 1 10:26:29 PDT 2013


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

          Priority: medium
            Bug ID: 70010
          Keywords: patch
          Assignee: simon.mcvittie at collabora.co.uk
           Summary: race condition in async avatar saving can lead to
                    misleading signals
        QA Contact: telepathy-bugs at lists.freedesktop.org
          Severity: normal
    Classification: Unclassified
                OS: All
          Reporter: simon.mcvittie at collabora.co.uk
          Hardware: Other
            Status: ASSIGNED
           Version: git master
         Component: tp-glib
           Product: Telepathy

Created attachment 86917
  --> https://bugs.freedesktop.org/attachment.cgi?id=86917&action=edit
[tp-glib 0.22] TpContact: avoid a race condition in avatar handling

We have to remember the avatar token synchronously, before we start
async-saving the cached file, so that we can't get into this
situation:

    my avatar is token "A", bytes "AAAA..."
    my avatar changes to token "B", bytes "BBBB..."
    we start saving the file /.../B
    my avatar changes to token "C", bytes "CCCC..."
    saving the file /.../B finishes
    change-notification announces that my avatar has changed to "B"

which is particularly problematic for Mission Control.

---

Regression in Bug #63402.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.


More information about the telepathy-bugs mailing list