Bug 288502 - Cannot connect to password protected Jabber conferences.
Summary: Cannot connect to password protected Jabber conferences.
Status: RESOLVED FIXED
Alias: None
Product: telepathy
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: git-latest
Platform: Chakra Linux
: NOR normal
Target Milestone: 0.6-next
Assignee: Rohan Garg
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-08 20:56 UTC by Gavin L McNabb
Modified: 2013-03-05 20:42 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 0.6.0


Attachments
What should happen, same room. Psi (left) and Telepathy (right) (242.63 KB, image/png)
2011-12-08 20:56 UTC, Gavin L McNabb
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gavin L McNabb 2011-12-08 20:56:54 UTC
Created attachment 66519 [details]
What should happen, same room. Psi (left) and Telepathy (right)

Version:           git-latest (using KDE 4.7.3) 
OS:                Linux

When opening a Jabber conference that's protected with a password, you're presented with a blank chat screen.

Reproducible: Always

Steps to Reproduce:
Login to Jabber, select Join chatroom, Enter Room Name, Blank chat appears

Actual Results:  
Blank Chat appears

Expected Results:  
The chatroom should open, see attachment for a side by side of Telepathy and Psi.
Comment 1 David Edmundson 2011-12-08 21:35:46 UTC
Seems likely, I've not written anything that does it :-)

I believe it's this channel that's relevant:
http://telepathy.freedesktop.org/spec/Channel_Interface_Password.html

and in TpQt4:
http://telepathy.freedesktop.org/doc/telepathy-qt4/a00099.html
Though they're the annoying low level bindings instead of the nice stuff.

I'm not sure which part of the text-ui this belongs in, or whether this needs to happen before we create the ChatWidget with the channel. Hopefully we just implement this interface and everything works. 

I think although the code needs to go into the text-ui we should try and make it such that it can be re-usable as every type of channel (not just text) could have this interface. Maybe a class in the lib, that takes a channel as a parameter and subclasses pending operation that checks if the password interface exists, and takes appropriate UI action if needed.

Does anyone know how to set up a password protected conference room which we can use for testing.

If anyone else is up for coding this I'll guide them through (as I've just researched it), otherwise I'll do it when I find time.
Comment 2 Gavin L McNabb 2011-12-08 21:40:32 UTC
Just create a New room in Pidgin or any other Jabber client (simply join a nonexistent room), open the room control panel (type /config in Pidgin), and just add a password.
Comment 3 David Edmundson 2011-12-08 21:43:41 UTC
Talking of which, there's the entire RoomConfig1 spec to implement....
Comment 4 David Edmundson 2012-04-24 12:46:45 UTC
Alternately maybe this channel should be handled by the auth-handler. Need to confirm what Empathy does.
Comment 5 Rohan Garg 2012-10-05 14:22:38 UTC
Working on this, have a rough implementation of things in my scratch repo. Should be ready by 0.6
Comment 6 Rohan Garg 2012-10-06 01:16:05 UTC
Partial working implementation can be found in kde:scratch/garg/ktp-auth-handler . Clickable link : http://quickgit.kde.org/index.php?p=scratch%2Fgarg%2Fktp-auth-handler.git&a=shortlog&h=refs/heads/password_protected_rooms

Branch is password_protected_rooms , a note of caution here, I will be rewriting history .

In order to test : /opt/project-neon/lib/kde4/libexec/ktp-auth-handler --persist  ( adjust according to install path, this is for testers using Project Neon ) -> Join a password protected room.