Bug 17430 - connections' object path etc. should contain uniquifying string
Summary: connections' object path etc. should contain uniquifying string
Status: RESOLVED FIXED
Alias: None
Product: Telepathy
Classification: Unclassified
Component: idle (show other bugs)
Version: unspecified
Hardware: Other All
: medium minor
Assignee: Telepathy bugs list
QA Contact: Telepathy bugs list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-04 09:38 UTC by Will Thompson
Modified: 2009-02-20 14:23 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Will Thompson 2008-09-04 09:38:00 UTC
If I connect to Freenode as "wjt", then rename myself to "resiak", the object path of the connection will still contain "wjt@irc.freenode.net".  If I then try to make another connection as "wjt", it will spuriously fail because of an object path clash, even though it should succeed.

Thus we should include some kind of uniquifying string in the account name component of the object path – perhaps just the hex value of the IdleConnection *.
Comment 1 Jonathon Jongsma 2009-02-20 12:24:48 UTC
hm, actually there is another (similar) use case.  When using bip as an IRC proxy, you often set up bip to connect to multiple IRC networks.  Then when you connect from your irc client to bip, you use the same server and (likely) the same nick, but provide a different password for each network (bip's passwords are of the form: 'bipuser:bippassword:networkname').

So for example, I'm connected to both freenode and gimpnet, so I set up separate accounts in empathy for both of these.  The settings are identical except for the password field.  But telepathy-idle doesn't allow me to do this, and gives me an error that the name is already in use.

I hope to have a fix soon.
Comment 2 Will Thompson 2009-02-20 13:02:29 UTC
I already have a patch for this: http://git.collabora.co.uk/?p=user/wjt/telepathy-idle-wjt.git;a=shortlog;h=refs/heads/trivia
Comment 3 Jonathon Jongsma 2009-02-20 14:23:53 UTC
pushed.


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.