[Bug 21735] Map all Wocky errors to an appropriate TpError

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri Aug 13 16:44:51 CEST 2010


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

--- Comment #16 from Simon McVittie <simon.mcvittie at collabora.co.uk> 2010-08-13 07:44:51 PDT ---
WOCKY_XMPP_ERROR
================

These are RFC 3920 stanza errors.

bad-request and unexpected-request are probably internal problems in Gabble or
Wocky? We currently map them to NotAvailable.

conflict is currently mapped to CSR_Name_In_Use, NotAvailable, which is the
best we can do in general; bits of Gabble are expected to special-case it, and
indeed they do.

feature-not-implemented and service-unavailable are NotImplemented, although
NotCapable would also be a reasonable guess.

forbidden, payment-required and not-authorized are CSR_Authentication_Failed,
PermissionDenied.

gone is DoesNotExist (a reasonable guess, I think).

internal-server-error needs a better mapping, as mentioned above.

item-not-found is DoesNotExist.

jid-malformed is Invalid[thing that would be a]Handle.

recipient-unavailable is Offline.

redirect needs extra info in ConnectionError anyway. We currently guess wildly
and say DoesNotExist.

remote-server-not-found is currently DoesNotExist, with a FIXME comment
suggesting that it should perhaps be NetworkError; I could go either way.

remote-server-timeout is currently NetworkError.

resource-constraint from the server is exactly ServiceBusy. We can't
distinguish between this and the remote UI being busy without further context,
unfortunately.

not-allowed, not-acceptable, registration-required and subscription-required
are all currently mapped to CSR_Authentication_Failed, PermissionDenied.

undefined-condition is anyone's guess; we use NotAvailable.

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