After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 579341 - Should be able to join password protected rooms
Should be able to join password protected rooms
Status: RESOLVED FIXED
Product: empathy
Classification: Core
Component: Multi User Chat
2.26.x
Other Linux
: Normal normal
: ---
Assigned To: empathy-maint
: 597902 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2009-04-17 20:04 UTC by Pierre-Luc Beaudoin
Modified: 2011-08-29 10:12 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
http://git.collabora.co.uk/?p=user/cassidy/empathy;a=shortlog;h=refs/heads/room-password-579341 (14.41 KB, patch)
2009-11-11 17:17 UTC, Guillaume Desmottes
reviewed Details | Review

Description Pierre-Luc Beaudoin 2009-04-17 20:04:08 UTC
When trying to join a password protect muc room, Empathy will open an empathy muc with no text and no contacts in the members'list.  

Until a password dialog is created, it should display an error message instead.

This look like a regression from December, since it used not to do that. Possibly added when the new dispatcher was merged.
Comment 1 Guillaume Desmottes 2009-06-11 10:49:58 UTC
I tried with master and Empathy didn't do anything.
Any way, it should at least display an error message.
Comment 2 tylermills 2009-10-07 03:24:59 UTC
I too would like to see this feature added, one of the main reasons I have not switched to this client yet as xmpp is what we use for work and we have a few password protected conferences I am supposed to be in :)
Comment 3 Frederic Peters 2009-10-31 21:50:53 UTC
*** Bug 597902 has been marked as a duplicate of this bug. ***
Comment 4 Guillaume Desmottes 2009-11-06 10:39:38 UTC
Right way to do this is to check if channels implements the Password interface and then check if the 'Provide' property is True. In that case we should ask for the password.

http://telepathy.freedesktop.org/spec/org.freedesktop.Telepathy.Channel.Interface.Password.html
Comment 5 Guillaume Desmottes 2009-11-11 17:13:45 UTC
I opened bug #601573 about the "invite only" case. Let's focus on password protected rooms in this bug.
Comment 6 Guillaume Desmottes 2009-11-11 17:17:35 UTC
Created attachment 147486 [details] [review]
http://git.collabora.co.uk/?p=user/cassidy/empathy;a=shortlog;h=refs/heads/room-password-579341

 libempathy-gtk/empathy-chat.c  |  168 +++++++++++++++++++++++++++++++++++++++-
 libempathy-gtk/empathy-chat.ui |   13 +++-
 libempathy/empathy-tp-chat.c   |  149 ++++++++++++++++++++++++++++++++++-
 libempathy/empathy-tp-chat.h   |   11 +++
 4 files changed, 335 insertions(+), 6 deletions(-)
Comment 7 Guillaume Desmottes 2009-11-11 17:18:04 UTC
Note that doesn't work with Idle atm because of https://bugs.freedesktop.org/show_bug.cgi?id=25039
Comment 8 Guillaume Desmottes 2009-11-11 17:24:46 UTC
I opened bug #601577 and #601578 about futur improvements for the info bar.
Comment 9 Cosimo Cecchi 2009-11-12 17:24:35 UTC
Review of attachment 147486 [details] [review]:

Looks great, except that the indentation displays *very* ugly here in the review tool (the added code is not aligned properly). Are you sure you're not somehow mixing tabs and spaces, or you have your editor set to 4-spaces tabs instead of 8?

Just a tiny comment:

::: libempathy/empathy-tp-chat.c
@@ +790,3 @@
+
+	if (!priv->got_password_flags)
+		return;

Why did you split these checks?
Comment 10 Guillaume Desmottes 2009-11-13 10:53:21 UTC
(In reply to comment #9)
> Review of attachment 147486 [details] [review]:
> 
> Looks great, except that the indentation displays *very* ugly here in the
> review tool (the added code is not aligned properly). Are you sure you're not
> somehow mixing tabs and spaces, or you have your editor set to 4-spaces tabs
> instead of 8?

Really? I just checked and it seems fine. I tried to use the same indentation than the existing code. Can you be more specific please?


> Just a tiny comment:
> 
> ::: libempathy/empathy-tp-chat.c
> @@ +790,3 @@
> +
> +    if (!priv->got_password_flags)
> +        return;
> 
> Why did you split these checks?

To make it clearer. I found the "if (cond1 || cond2 || (cond3 && cond4))" not very clear. Especially as I was about to add more checks.
Comment 11 Cosimo Cecchi 2009-11-13 15:19:19 UTC
(In reply to comment #10)
> 
> Really? I just checked and it seems fine. I tried to use the same indentation
> than the existing code. Can you be more specific please?

As I'm not able to be more specific without touching the code, I made a commit [1] which fixes the indentation problems I was seeing :)

Emacs' `indent-region' command seems to adjust this automatically here, and I manually moved some lines to make the style more readable on small (4:3) screens, such as the display of my X60 (still, I think the 8-spaces tabs style makes Baby Jesus cry).

Other than this, the branch looks fine to me.

[1] http://git.collabora.co.uk/?p=user/cosimoc/empathy.git;a=shortlog;h=refs/heads/cass-room-password
Comment 12 Guillaume Desmottes 2009-11-13 16:00:07 UTC
I see the problem. I merged my branch + your branch to master. Thanks a lot.

This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.
Comment 13 Guillaume Desmottes 2010-02-19 13:21:17 UTC
(In reply to comment #7)
> Note that doesn't work with Idle atm because of
> https://bugs.freedesktop.org/show_bug.cgi?id=25039


This should now work with telepathy-idle 0.1.6