Bug 27969 - RequestHandles sometimes returns self handle instead of new handle
Summary: RequestHandles sometimes returns self handle instead of new handle
Status: RESOLVED MOVED
Alias: None
Product: Telepathy
Classification: Unclassified
Component: butterfly (show other bugs)
Version: unspecified
Hardware: All All
: medium minor
Assignee: Telepathy bugs list
QA Contact: Telepathy bugs list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-04 12:25 UTC by smacnay
Modified: 2019-12-03 19:45 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
debug log for butterfly (425.76 KB, text/plain)
2010-05-04 12:25 UTC, smacnay
Details

Description smacnay 2010-05-04 12:25:08 UTC
Created attachment 35418 [details]
debug log for butterfly

When empathy starts up, I get a friend or chat request from an unknown MSN user.  I choose "no" to the request but the same user's request pops up on my next startup requiring me to repeat the process.

butterfly debug log is attached
Comment 1 Jonny Lamb 2010-05-05 04:32:01 UTC
I just had a play with this and came to the following conclusion:

This does actually work perfectly fine... most of the time. However, sometimes, there's a confusion popping up (most probably in butterfly) about what the handle of a contact is.

As a result, you're being asked to confirm whether a contact can see your presence, but the handle in question is the self handle, which is clearly wrong. I've no idea what's going on but I've seen this before. I can never reliably reproduce it, but basically I called RequestHandles on a contact and it returned the self handle, which was very odd.

I'm pretty sure these are the same bugs, but I'm not sure how to fix it at the moment.

To confirm my suspicion, could you attach a dbus-monitor log of your account connecting, and you rejecting the contact subscription, please?

For the record of this bug, the following traceback is an example of when I try and remove the self handle:

Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.5/dbus/service.py", line 702, in _message_cb
    retval = candidate_method(self, *args, **keywords)
  File "/home/jonny/src/telepathy-butterfly/butterfly/channel/contact_list.py", line 211, in RemoveMembers
    self._remove(h)
  File "/home/jonny/src/telepathy-butterfly/butterfly/channel/contact_list.py", line 86, in method
    self._mutex.add_callback(self._key, handle, (unlocked_cb,))
  File "/home/jonny/src/telepathy-butterfly/butterfly/channel/contact_list.py", line 65, in add_callback
    callback[0](*callback[1:])
  File "/home/jonny/src/telepathy-butterfly/butterfly/channel/contact_list.py", line 83, in unlocked_cb
    if func(object, handle, *args, **kwargs):
  File "/home/jonny/src/telepathy-butterfly/butterfly/channel/contact_list.py", line 240, in _remove
    contact = handle.contact
AttributeError: 'ButterflySelfHandle' object has no attribute 'contact'
Comment 2 smacnay 2010-05-05 06:21:15 UTC
The dbus-monitor log can be found here.  The logging started before empathy was connected and was stopped after the behaviour described in my bug report was concluded.

http://pastebin.com/Ek0gzKJJ
Comment 3 smacnay 2010-05-05 06:29:29 UTC
The proper paste url for the dbus-monitor log is: 

http://pastebin.com/qyR77FSZ
Comment 4 smacnay 2010-05-05 06:30:01 UTC
(In reply to comment #2)
> The dbus-monitor log can be found here.  The logging started before empathy was
> connected and was stopped after the behaviour described in my bug report was
> concluded.
> 
> http://pastebin.com/Ek0gzKJJ

This url does not work.  I posted a new one below.
Comment 5 Jonny Lamb 2010-05-05 10:09:10 UTC
err

...
method call sender=:1.541 -> dest=org.freedesktop.Notifications serial=2222 path=/org/freedesktop/Notifications; interface=org.freedesktop.Notifications; member=Notify
   string "Empathy"
   uint32 0
   string ""
   string "Subscription requested by kelsie1808"
   string "
Message: Hi! Please add me to your Yahoo! Messenger contact list so we can chat. Thanks!"
   array [
      string "respond"
      string "Respond"
   ]
   array [
      dict entry(
         string "x"
         variant             int32 887
      )
      dict entry(
         string "y"
         variant             int32 1010
      )
...

This is not MSN.
Comment 6 Jonny Lamb 2010-05-06 10:18:39 UTC
As I've already made a few comments about the handle bug, I'll repurpose this bug.
Comment 7 GitLab Migration User 2019-12-03 19:45:21 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/telepathy/telepathy-butterfly/issues/17.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.