Bug 16499

Summary: telepathy-idle doesn't allow setting "username"
Product: Telepathy Reporter: Matej Cepl <mcepl>
Component: idleAssignee: Telepathy bugs list <telepathy-bugs>
Status: RESOLVED FIXED QA Contact: Telepathy bugs list <telepathy-bugs>
Severity: enhancement    
Priority: medium CC: jonathon
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: output of IDLE_DEBUG=all /usr/bin/telepathy-idle 2>&1 |tee /tmp/telepathy-idle-log.txt

Description Matej Cepl 2008-06-24 08:38:17 UTC
Created attachment 17352 [details]
output of IDLE_DEBUG=all  /usr/bin/telepathy-idle 2>&1 |tee /tmp/telepathy-idle-log.txt

I cannot get into #fedora-qa even though I can get easily to #telepathy. See attached telepathy-idle-log.txt for record. Also this is discussion on #telepathy about this bug:

mcepl: OK, here I am without any problem
smcv: 16:23 -!- mcepl [n=mcepl@ppp1053.in.ipex.cz] has joined #telepathy
smcv: there you go
mcepl: what was it before?
smcv: matej
smcv: I believe n= is "fake ident" (i.e. who you say you are, rather than an identd reply)
smcv: so for some reason #fedora-qa allows you to join if you claim to be matej, but not if you claim to be mcepl
smcv: I don't know how you configure that in idle, if it's even possible
smcv: hmm, looks as though idle doesn't have a CM parameter for that
mcepl: when I am logging into that room I am asked in empathy for name, or maybe it is in the IRC account setting?
smcv: nah, it's hard-coded
smcv: irc_handshakes(), http://darcs.collabora.co.uk/darcsweb.cgi?r=telepathy/telepathy-idle;a=headblob;f=/src/idle-connection.c#l763
smcv: uses your nick for both the NICK and USER commands
mcepl: so, I am going to file a bug -- would you comment on it, please?
smcv: whereas xchat-gnome lets you change what is passed in the USER command, or possibly hard-codes use of your login name
smcv: idle ought to have a "user" parameter to RequestConnection(), probably
smcv: whereas xchat-gnome lets you change what is passed in the USER command, or possibly hard-codes use of your login name
smcv: idle ought to have a "user" parameter to RequestConnection(), probably
smcv: it's a stupid way to do ACLs in any case, since arbitrary clients can specify whatever "username" they like - talk to the #fedora-qa chanops and get your other self unbanned?
smcv: but yeah, file a bug, enhancement/low
mcepl: well, in meantime empathy crashed on me  http://bugzilla.gnome.org/show_bug.cgi?id=539974
mcepl: 
smcv: if you want to provide a patch, search idle-connection.[ch] and idle-connection-manager.[ch] for "realname" (case-insensitively) and add a similar property "user" (defaulting to a copy of nickname), then use that in irc_handshakes()
Comment 1 Simon McVittie 2008-06-24 08:47:29 UTC
Setting to enhancement. I don't think this is a bug (reading any particular significance into the claimed username is a bit mad, since it's user-configurable in most clients), but it is a missing feature.

Specifically, the problem is that idle always uses the same string as the nickname for the user's claimed username (used instead of the ident if they're not running an identd), while other clients use the user's real username or a user-configured string.

16:25 < smcv> so for some reason #fedora-qa allows you to join if you claim to 
              be matej, but not if you claim to be mcepl
...
16:29 < smcv> idle ought to have a "user" parameter to RequestConnection(), 
              probably
16:30 < smcv> it's a stupid way to do ACLs in any case, since arbitrary clients 
              can specify whatever "username" they like - talk to the 
              #fedora-qa chanops and get your other self unbanned?
...
16:32 < smcv> if you want to provide a patch, search idle-connection.[ch] and 
              idle-connection-manager.[ch] for "realname" (case-insensitively) 
              and add a similar property "user" (defaulting to a copy of 
              nickname), then use that in irc_handshakes()
Comment 2 Jonathon Jongsma 2009-02-18 12:59:17 UTC
I've added a 'username' param in a branch in my git repo:
http://git.collabora.co.uk/?p=user/jonathon/telepathy-idle;a=shortlog;h=refs/heads/username-param
Comment 3 Will Thompson 2009-05-27 16:22:21 UTC
Merged, will be in idle 0.1.4/0.2.0.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.