Bug 42737

Summary: contact: Doesn't actually check if connection implement desired feature
Product: Telepathy Reporter: Guillaume Desmottes <guillaume.desmottes>
Component: tp-glibAssignee: Telepathy bugs list <telepathy-bugs>
Status: RESOLVED MOVED QA Contact: Telepathy bugs list <telepathy-bugs>
Severity: normal    
Priority: medium CC: jonny.lamb
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Guillaume Desmottes 2011-11-09 01:43:11 UTC
I get this when joining an Idle muc channel:

tp-glib/contacts-WARNING **: tp_contact_set_attributes: /org/freedesktop/Telepathy/Connection/idle/irc/cass_2ddev_40irc_2efreenode_2enet0x136f020 supposedly implements Contacts and SimplePresence, but omitted the mandatory org.freedesktop.Telepathy.Connection.Interface.SimplePresence/presence attribute


Looks like tp-glib doesn't actually check if the connection implements SimplePresence and so raise this error if user wants to prepare it.



#0  0x00007fffee8f312d in g_logv (log_domain=0x7ffff0617d11 "tp-glib/contacts", log_level=G_LOG_LEVEL_WARNING, 
    format=0x7ffff060eab0 "%s: %s supposedly implements Contacts and SimplePresence, but omitted the mandatory org.freedesktop.Telepathy.Connection.Interface.SimplePresence/presence attribute", args1=0x7fffffffdf00) at gmessages.c:757
#1  0x00007ffff0590b11 in _tp_log (level=G_LOG_LEVEL_WARNING, flag=TP_DEBUG_CONTACTS, 
    format=0x7ffff060eab0 "%s: %s supposedly implements Contacts and SimplePresence, but omitted the mandatory org.freedesktop.Telepathy.Connection.Interface.SimplePresence/presence attribute") at debug.c:313
#2  0x00007ffff056cd14 in tp_contact_set_attributes (contact=0x8d71b0, asv=0x8f0a40, wanted=191, error=0x7fffffffe0b8) at contact.c:3675
#3  0x00007ffff056d181 in contacts_got_attributes (connection=0x8cc240, attributes=0x8d1a40, error=0x0, user_data=0x87b370, weak_object=0x8f40c0)
    at contact.c:3843
#4  0x00007ffff054a61e in _tp_cli_connection_interface_contacts_invoke_callback_get_contact_attributes (self=0x8cc240, error=0x0, args=0x8fb100, 
    generic_callback=0x7ffff056cf73 <contacts_got_attributes>, user_data=0x87b370, weak_object=0x8f40c0) at _gen/tp-cli-connection-body.h:12181
#5  0x00007ffff05c2ca2 in tp_proxy_pending_call_idle_invoke (p=0x8e6400) at proxy-methods.c:153
#6  0x00007fffee8ec157 in g_idle_dispatch (source=0x8e6290, callback=0x7ffff05c2b7f <tp_proxy_pending_call_idle_invoke>, user_data=0x8e6400) at gmain.c:4506
#7  0x00007fffee8e9a2c in g_main_dispatch (context=0x797380) at gmain.c:2387
#8  0x00007fffee8ea6ed in g_main_context_dispatch (context=0x797380) at gmain.c:2924
#9  0x00007fffee8ea8d0 in g_main_context_iterate (context=0x797380, block=1, dispatch=1, self=0x881430) at gmain.c:2995
#10 0x00007fffee8ea994 in g_main_context_iteration (context=0x797380, may_block=1) at gmain.c:3056
#11 0x00007fffefd4f6e5 in g_application_run (application=0x8808a0, argc=1, argv=0x7fffffffe4e8) at gapplication.c:1320
#12 0x000000000043a44e in main (argc=1, argv=0x7fffffffe4e8) at empathy-chat.c:160
Comment 1 Guillaume Desmottes 2011-12-12 09:34:17 UTC
Same problem with rakia:

tp-glib/contacts-WARNING **: tp_contact_set_attributes: /org/freedesktop/Telepathy/Connection/sofiasip/sip/gdesmott_40voipbuster_2ecom supposedly implements Contacts and SimplePresence, but omitted the mandatory org.freedesktop.Telepathy.Connection.Interface.SimplePresence/presence attribute
Comment 2 Guillaume Desmottes 2012-03-27 00:09:30 UTC
*** Bug 47928 has been marked as a duplicate of this bug. ***
Comment 3 GitLab Migration User 2019-12-03 20:39:02 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-glib/issues/77.

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.