[Bug 21229] New: Violates a XEP's MUST by trying to register with incomplete information
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Thu Apr 16 18:54:29 CEST 2009
http://bugs.freedesktop.org/show_bug.cgi?id=21229
Summary: Violates a XEP's MUST by trying to register with
incomplete information
Product: Telepathy
Version: unspecified
Platform: Other
OS/Version: All
Status: NEW
Severity: normal
Priority: medium
Component: telepathy-gabble
AssignedTo: telepathy-bugs at lists.freedesktop.org
ReportedBy: will.thompson at collabora.co.uk
>From get_reply_cb (I added this a couple of days ago):
/* FIXME: "The requesting entity MUST provide information for all of the
* elements (other than <instructions/>) contained in the IQ result."
* What should we do if the IQ contains <email/> or something else
* that we can't provide? Currently we just submit the form anyway and
* hope for the best.
*/
This seems to have become a practical problem: I just tried to register with
jabber.org and it failed pretty miserably, since it now requires email address
and real name. From LM_DEBUG=net (reformatted for clarity):
--> <iq type="get" id="268488301266">
<query xmlns="jabber:iq:register"></query>
</iq>
<-- <iq id='268488301266' type='result'>
<query xmlns='jabber:iq:register'>
<name/>
<email/>
<instructions>Additional information is needed to
register.</instructions>
<username/>
<password/>
</query>
</iq>
--> <iq type="set" id="135881693239">
<query xmlns="jabber:iq:register">
<username>snhostnaosntuoesnuoeustnueostnuaoshuoanstuoeastnuoeanshuoestneostno</username>
<password>snhaoestnuatsheuahtsaauosnauoenthaoenthauonoha</password>
</query>
</iq>
<-- <iq id='135881693239' type='result'/>
(Yes, jabber.org says it worked. So maybe it lied to us.)
At this point Gabble fell down a well:
** (telepathy-gabble:28074): DEBUG: registration_finished_cb: succeeded
** (telepathy-gabble:28074): DEBUG: do_auth: authenticating with username:
snhostnaosntuoesnuoeustnueostnuaoshuoanstuoeastnuoeanshuoestneostno, password:
<hidden>, resource: Telepathy
** (telepathy-gabble:28074): DEBUG: gabble_register_dispose: dispose called
** (telepathy-gabble:28074): DEBUG: gabble_register_finalize: called with
0x90fc70
and that was it.
Gabble can't supply the extra information, so it MUST fail the registration
process per the XEP. So I guess maybe we need a new Registration interface,
possibly *shock* using vCard fields from ContactInfo! \o/
--
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the telepathy-bugs
mailing list