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 481139 - Generic "telepathy" jabber resource name causing clashes.
Generic "telepathy" jabber resource name causing clashes.
Status: RESOLVED OBSOLETE
Product: empathy
Classification: Core
Component: General
0.12
Other Linux
: Normal normal
: ---
Assigned To: empathy-maint
empathy-maint
: 546202 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2007-09-28 01:16 UTC by Jean-François Fortin Tam
Modified: 2009-10-29 16:22 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Jean-François Fortin Tam 2007-09-28 01:16:19 UTC
on two computers, if you login using the same account with empathy, one will disconnect the other.

Other clients can handle simultaneous connections fine (gajim/pidgin/gmail/whatever). Basically:

gajim + gajim = ok
gajim + empathy = ok
empathy + empathy = collision
Comment 1 Jean-François Fortin Tam 2007-09-28 01:18:05 UTC
oh, forgot to mention that this is a feature of the jabber protocol. I doubt that MSN and others support that.
Comment 2 Guillaume Desmottes 2007-09-28 07:51:52 UTC
I suppose that's because both accounts use the same ressource and/or priority.
Comment 3 Xavier Claessens 2007-11-22 15:14:31 UTC
Yes, you have to change your recource. We should change default resource to hostname to minimize collisions and, in my opinion, gabble should add a randomized suffix to the resource in case of conflict.
Comment 4 Jean-François Fortin Tam 2007-11-22 15:15:59 UTC
is it even possible to have two computers you own with the same hostname ?_?
Comment 5 Dafydd Harries 2008-02-13 22:39:29 UTC
I don't think randomising the resource is Gabble's business. Empathy can do that itself at any rate.
Comment 6 Guillaume Desmottes 2008-07-08 16:35:04 UTC
I agree, Gabble should just set the ressource we ask it to set.

I think the easiest solution is to set a random string as default ressource instead of a hardcoded one. So Empathy won't have to deal to change it at each connection and people who want to use a specific ressource can still do.
Comment 7 Frederic Peters 2008-08-11 17:54:07 UTC
*** Bug 546202 has been marked as a duplicate of this bug. ***
Comment 8 Will Thompson 2009-06-07 21:39:14 UTC
Gabble 0.7.28 uses a random resource if you don't explicitly set one.

Maybe Empathy should use a function of the hostname as the resource nonetheless? I note that lots of people use "ubuntu" as their hostname, so that alone is unlikely to disambiguate two concurrent connections. So, Empathy would have to add random misc to the resource, and then it might as well just delegate to Gabble.
Comment 9 Xavier Claessens 2009-06-08 08:06:10 UTC
I remember I fixed this problem in Gossip by handling disconnect with reason NAME_IN_USE by happending a random number to the resource.

So it will first try to connect with "telepathy" then if it does not work, it tries "telepathy.YGLDFDGR"

If gabble sets a random resource, I think it's fine for empathy to let resource empty since that's considered an "advanced" setting anyway in the UI. So if the user don't know what it is, a random is fine. If the user knows what it is, a name-in-use error message is fine.

AFAIK Empathy sets no value to resource atm, right? I think we can close this bug now that gabble have a fix.
Comment 10 Sumana Harihareswara 2009-10-27 01:19:17 UTC
Jean-François Fortin Tam, Murray: can you reproduce this?  I suspect improvements in gabble have fixed it.
Comment 11 Will Thompson 2009-10-27 06:19:46 UTC
Yes, Gabble has used a random resource as the default for a while now. It will soon instead default to a resource derived from a unique ID for your machine, so you'll always have the same unique resource when connecting from a given machine.