Ticket #2750 (closed defect: fixed)

Opened 2 years ago

Last modified 15 months ago

Add contact dialog says I'm not registered to any transports

Reported by: patrys Owned by: asterix
Priority: high Milestone: 0.11.2
Component: None Version:
Severity: normal Keywords:
Cc: bronger@… OS: All

Description

I remember there was a ticket for this but can't find it now. When I go to the "add contact" window and select any transport, Gajim says I should register first. I am registered to most of them and they are all in my roster. Happens to all accounts, all transports and on different servers (mostly running jabberd2 but that is not likely related).

Attachments

Change History

Changed 2 years ago by asterix

could you give a server with a transport that produce that ?

Changed 2 years ago by baze

are you using the latest svn version? i had this problem a few months back too, but it is solved here now. i wanted to add a user to the icq transport which was in my roster and i was online with it, but i was told i had to register first.

for some time now, it works fine and is recognized correctly. the transport hasn't been updated since the time it did not work, so it shouldn't be the transport's fault.

Changed 2 years ago by patrys

The only public server I know is kernel.pl (jabber.kernel.pl). You can't create an account but you can use our transports for testing purposes.

Yes, I am always up-to-date with SVN.

Changed 2 years ago by asterix

jabber.kernel.pl doesn't reply to disco requests, so I can't browse and register to transports

Changed 2 years ago by patrys

Try kernel.pl - I just browsed it from a client connected to dreamhost.com

Changed 2 years ago by asterix

I'm registered to icq.jabber.kernel.pl, I open add contact window, I select ICQ, and I can add an ICQ contact without any pb.

could you edit src/dialogs.py line 483, and add :

print self.agents
print self.available_types

and give me the result so that I can try to understand what happens ?

Changed 2 years ago by baze

i have this bug atm too again, so i added those 2 lines and this is what is printed:

{u'sms': [u'aspsms.swissjabber.ch'], u'yahoo': [u'yahoo.swissjabber.ch'], u'aim': [u'aim.jaim.at'], u'msn': [u'msn.jaim.at'], u'icq': [u'icq2.swissjabber.ch'], 'jabber': []}
[u'aim', u'msn', u'icq', u'sms', u'yahoo']

Changed 2 years ago by asterix

could you try this simple patch ?

Index: dialogs.py
===================================================================
--- dialogs.py  (révision 7637)
+++ dialogs.py  (copie de travail)
@@ -464,7 +464,7 @@
                for acct in accounts:
                        for j in gajim.contacts.get_jid_list(acct):
                                contact = gajim.contacts.get_first_contact_from_jid(acct, j)
-                               if _('Transports') in contact.groups:
+                               if gajim.jid_is_transport(j):
                                        type_ = gajim.get_transport_name_from_jid(j)
                                        if self.agents.has_key(type_):
                                                self.agents[type_].append(j)

Changed 2 years ago by asterix

  • status changed from new to closed
  • resolution set to fixed

(In [7638]) better detection of transport jid in add contact dialog. fixes #2750

Changed 22 months ago by bronger@…

  • cc bronger@… added

Strange ... I experience this issue with the SVN version for one or two months now. I add contacts with Gaim(sic!) since then. The debug code prints:

{None: [u'msn.jabber.rwth-aachen.de', u'icq.jabber.rwth-aachen.de'], u'aim': [u'aim.jabber.rwth-aachen.de', u'aim.jabber.rwth-aachen.de'], u'icq': [u'icq.jabber.rwth-aachen.de', u'icq.jabber.rwth-aachen.de'], 'jabber': [], u'msn': [u'msn.jabber.rwth-aachen.de', u'msn.jabber.rwth-aachen.de']}
[u'aim', u'msn', u'icq']

If you want to subscribe for yourself, I can submit a test account login/password.

Changed 20 months ago by asterix

  • milestone changed from 0.11 to 0.12

(In [8059]) fix wrong var name. fixes #2750

Changed 15 months ago by roidelapluie

(In [8638]) 0.11.2: fix wrong var name. fixes #2750

Changed 15 months ago by roidelapluie

  • os set to All
  • milestone changed from 0.12 to 0.11.2

Add/Change #2750 (Add contact dialog says I'm not registered to any transports)

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
 
Note: See TracTickets for help on using tickets.