[Bug 22670] New: When a client loses any well-known name, MC thinks it has crashed

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Jul 8 13:46:01 CEST 2009


http://bugs.freedesktop.org/show_bug.cgi?id=22670

           Summary: When a client loses any well-known name, MC thinks it
                    has crashed
           Product: Telepathy
           Version: unspecified
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: telepathy-mission-control
        AssignedTo: telepathy-bugs at lists.freedesktop.org
        ReportedBy: simon.mcvittie at collabora.co.uk


>        if (old_owner[0] == ':')
>        {
>            /* it's a unique name - maybe it was handling some channels? */
>            _mcd_handler_map_set_handler_crashed (priv->handler_map,
>                                                  old_owner);
>        }

Both occurrences of "old_owner" here should be "name".

Consider a handler with multiple names, like the fake Kopete in
test/twisted/dispatcher/bypass-approval.py:

* unique name, say :1.94
* main well-known name ...Client.Kopete
* sub-handler to claim special channels without approval,
...Client.Kopete.BypassApproval

Now consider what happens if Kopete no longer wishes to bypass approval. MC
sees this NameOwnerChanged signal:

* owner of ...Client.Kopete.BypassApproval changed from :1.94 to nothing

That shouldn't cause it to take any special action (except removing the
.BypassApproval filter). However, because of the above logic error it's
interpreting it as if it was:

* owner of :1.94 changed from :1.94 to nothing

which is what happens if Kopete crashes, causing all its channels to be closed.


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



More information about the telepathy-bugs mailing list