[Bug 39790] Forgets password on nick conflicts when joining MUCs

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Aug 3 19:06:19 CEST 2011


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

--- Comment #2 from Will Thompson <will.thompson at collabora.co.uk> 2011-08-03 10:06:18 PDT ---
Created an attachment (id=49885)
 View: https://bugs.freedesktop.org/attachment.cgi?id=49885
 Review: https://bugs.freedesktop.org/review?bug=39790&attachment=49885

MUC: don't forget password when handling nick conflicts

WockyMuc has a property, :password, representing the current password
being used to join the MUC. GabbleMuc previously had a private variable,
'password', which was used for this. In the port to WockyMuc, setting
the private variable was removed, but it was still used when
re-attempting to join after a nick conflict.

(I think the password should be a parameter to a hypothetical
wocky_muc_join_async() which does all the nick conflict crap for you.
Having this as state that kicks around on the WockyMuc for ever is
bizarre—once you're in the room, you usually don't use the password,
unless you're the owner, in which case you can retrieve the current
password *which may be different*!)

This patch expunges the zombie private variable, and ensures
WockyMuc:password is only set when the user provides a password, not at
every join attempt. It adds a test for this case, and some of the basic
functionality of Password (which subsumes some incidental testing of the
Password interface in muc/presence-before-closing: the only test that
touched Password at all!).

Fixes:

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