[Bug 23113] New: Connection.ConnectionError: Better error reporting for registration
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Mon Aug 3 19:09:55 CEST 2009
http://bugs.freedesktop.org/show_bug.cgi?id=23113
Summary: Connection.ConnectionError: Better error reporting for
registration
Product: Telepathy
Version: unspecified
Platform: Other
OS/Version: All
Status: NEW
Severity: enhancement
Priority: medium
Component: telepathy-spec
AssignedTo: telepathy-bugs at lists.freedesktop.org
ReportedBy: simon.mcvittie at collabora.co.uk
When using XMPP in-band registration, there are all sorts of things that can go
wrong and end up signalled as InvalidArgument; for instance, "password too
short", "requested username may not contain a space", ...; if we can find out
from the server what was wrong (or tell from our knowledge of our XMPP that it
won't work without even asking the server), then we should pass it on to the
user.
We should use ConnectionError's Details dict to signal these in more detail.
For instance, if I try to register as "smcv <who doesn't understand XMPP
syntax>@jabber.org" we could do:
ConnectionError(InvalidArgument, {"invalid-char-in-param": {"username": "
'<>"}}
--
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