contact: Doesn't actually check if connection implement desired feature
@gdesmott
Submitted by Guillaume Desmottes Assigned to Telepathy bugs list
Description
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