[Bug 37729] New: tp_cli_dbus_properties_call_get returns identical addresses for different buddies

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sun May 29 22:06:29 CEST 2011


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

           Summary: tp_cli_dbus_properties_call_get returns identical
                    addresses for different buddies
           Product: Telepathy
           Version: unspecified
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: gabble
        AssignedTo: telepathy-bugs at lists.freedesktop.org
        ReportedBy: uwog at uwog.net
         QAContact: telepathy-bugs at lists.freedesktop.org


I'm using tp_cli_dbus_properties_call_get() to retrieve the TpHandle <-> dbus
address mapping in a tube MUC:

tp_cli_dbus_properties_call_get(
    chan, -1, TP_IFACE_CHANNEL_TYPE_DBUS_TUBE, "DBusNames",
    retrieve_buddy_dbus_mappings_cb,
    NULL, NULL, NULL);

But in the retrieve_buddy_dbus_mappings_cb() callback, every TpHandle id maps
to the same address:

GHashTable* name_mapping = (GHashTable*)(g_value_get_boxed(out_Value));
gpointer key;
gpointer value;
GHashTableIter iter;
g_hash_table_iter_init(&iter, name_mapping);
while (g_hash_table_iter_next(&iter, &key, &value))
{
    printf("Got room member - handle: %d, address: %s\n",
GPOINTER_TO_UINT(key), (const gchar*)(value));
}

This prints things like:

Got room member - handle: 12, address: :2.dXdvZzIwQGphYmJlci5vcmcA
Got room member - handle: 13, address: :2.dXdvZzIxQGphYmJlci5vcmcA

I'd expect every buddy to have a different dbus address.

This is using gabble 0.11.3.

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



More information about the telepathy-bugs mailing list