[Bug 21735] New: Gabble should use ConnectionError to give better errors when registering accounts

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu May 14 14:09:41 CEST 2009


http://bugs.freedesktop.org/show_bug.cgi?id=21735

           Summary: Gabble should use ConnectionError to give better errors
                    when registering accounts
           Product: Telepathy
           Version: unspecified
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: medium
         Component: telepathy-gabble
        AssignedTo: telepathy-bugs at lists.freedesktop.org
        ReportedBy: will.thompson at collabora.co.uk


Connection_Status_Reason is not expressive enough to encode the errors that
might occur when registering an account.

For example, I tried to register two accounts in quick succession on
jabster.pl, and for the second one it said:

<iq from='jabster.pl' id='788035814819' type='error'><query
xmlns='jabber:iq:register'> <username>jkjkjkjkdjdj</username>
 <password>redacted</password>
</query><error code='500' type='wait'><resource-constraint
xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/><text
xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'>Users are not allowed to register
accounts so quickly</text></error></iq>

Gabble exposed that as Authentication_Failed, which is obviously wrong. It
should emit ConnectionError with error NotAvailable.


-- 
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