Complains of invalid character in hostname
Traceback (most recent call last): File "/usr/share/gajim/src/common/xmpp/idlequeue.py", line 497, in process_events return IdleQueue.process_events(self, fd, flags) File "/usr/share/gajim/src/common/xmpp/idlequeue.py", line 367, in process_events obj.pollin() File "/usr/share/gajim/src/common/xmpp/transports_nb.py", line 405, in pollin self.do_receive() File "/usr/share/gajim/src/common/xmpp/transports_nb.py", line 585, in _do_receive self.on_receive(received) File "/usr/share/gajim/src/common/xmpp/transports_nb.py", line 597, in _on_receive self.on_receive(data) File "/usr/share/gajim/src/common/xmpp/dispatcher_nb.py", line 445, in dispatch handler'func' File "/usr/share/gajim/src/common/connectionhandlers.py", line 1197, in IqCB self.getRoster() File "/usr/share/gajim/src/common/connection_handlers.py", line 2582, in _getRoster self.discover_ft_proxies() File "/usr/share/gajim/src/common/connectionhandlers.py", line 2588, in discover_ft_proxies self.server_resource) File "/usr/share/gajim/src/common/helpers.py", line 99, in parsejid return prep(*decompose_jid(jidstring)) File "/usr/share/gajim/src/common/helpers.py", line 151, in prep raise InvalidFormat, _('Invalid character in hostname.') InvalidFormat: Invalid character in hostname.
Steps to reproduce
(config file info- i have three hosts set up, the default local one, one with hostname=mail.jaars.org (a corporate server) and another with hostname=talk.google.com)
Frankly, I'm not sure what is wrong, and the client seems to work. Because it spit out this error, I thought I should send it in.
while the jaars server does work, the google one is spotty -- maybe the problem is there.
OS version: Lucid
fyi, the last run (for the attachment) I set hostname=google.com, though it didn't seem to make a difference. I have an idea what might be happening, since I got a similar error later, when trying to change this back through the GUI (not the config editor). In addition to invalid character in hostname, it also says "Invalid Jabber ID". both of these sites use an entire Email address (name@host) as login, so there is two @ symbols in the jabber id -- perhaps it is parsing the first @ as the username@jabberserver divider, and not part of the username, which it is -- leaving the second @ in the middle of the jabberserver hostname, which I can imagine would be a problem. Is there some way to make this distinction clear to the client?
Thanks for the debug output.
Could you edit the /usr/share/gajim/src/common/connection_handlers.py file, and modify it line 2587 to add a print line like that:
cfg_proxies = gajim.config.get_per('accounts', self.name, 'file_transfer_proxies') print gajim.get_jid_from_account(self.name), self.server_resource our_jid = helpers.parse_jid(gajim.get_jid_from_account(self.name) + \ '/' + self.server_resource)
And show me what is printed in console just before the traceback?