[Bug 41719] New: Wocky not compliant to XEP-0115 (caps) for broken dataforms
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Wed Oct 12 16:50:58 CEST 2011
https://bugs.freedesktop.org/show_bug.cgi?id=41719
Summary: Wocky not compliant to XEP-0115 (caps) for broken
dataforms
Product: Telepathy
Version: git master
Platform: Other
OS/Version: All
Status: NEW
Severity: normal
Priority: medium
Component: gabble
AssignedTo: telepathy-bugs at lists.freedesktop.org
ReportedBy: alban.crequy at collabora.co.uk
QAContact: telepathy-bugs at lists.freedesktop.org
http://xmpp.org/extensions/xep-0115.html#ver-proc
section "5.4 Processing Method", bullet point 3.6:
> If the response includes an extended service discovery information
> form where the FORM_TYPE field is not of type "hidden" or the form
> does not include a FORM_TYPE field, ignore the form but continue
> processing.
Wocky does not respect that. In wocky/wocky-caps-hash.c
wocky_caps_hash_compute_from_lists():
field = g_hash_table_lookup (dataform->fields, "FORM_TYPE");
if (field == NULL)
{
DEBUG ("Data form is missing FORM_TYPE field");
goto cleanup;
}
Then, it returns NULL, and
src/presence-cache.c _caps_disco_cb() considers the hash to be bad:
computed_hash = wocky_caps_hash_compute_from_node (query_result);
if (computed_hash == NULL)
{
DEBUG ("Unable to compute caps hash for '%s'.", jid);
trust = 0;
bad_hash = TRUE;
}
--
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