Opened 6 years ago

Closed 6 years ago

#6036 closed defect (invalid)

Complains of invalid character in hostname

Reported by: Owned by:
Priority: normal Milestone:
Component: None Version:
Severity: normal Keywords: invalid character, hostname
Cc: Blocked By:
Blocking: OS: All


Bug description

Traceback (most recent call last):

File "/usr/share/gajim/src/common/xmpp/", line 497, in _process_events

return IdleQueue?._process_events(self, fd, flags)

File "/usr/share/gajim/src/common/xmpp/", line 367, in _process_events


File "/usr/share/gajim/src/common/xmpp/", line 405, in pollin


File "/usr/share/gajim/src/common/xmpp/", line 585, in _do_receive


File "/usr/share/gajim/src/common/xmpp/", line 597, in _on_receive


File "/usr/share/gajim/src/common/xmpp/", line 445, in dispatch

handlerfunc?(session, stanza)

File "/usr/share/gajim/src/common/", line 1197, in _IqCB


File "/usr/share/gajim/src/common/", line 2582, in _getRoster


File "/usr/share/gajim/src/common/", line 2588, in discover_ft_proxies


File "/usr/share/gajim/src/common/", line 99, in parse_jid

return prep(*decompose_jid(jidstring))

File "/usr/share/gajim/src/common/", line 151, in prep

raise InvalidFormat?, _('Invalid character in hostname.')

InvalidFormat?: Invalid character in hostname.

Steps to reproduce

open gajim. (config file info- i have three hosts set up, the default local one, one with (a corporate server) and another with 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.

Software versions

OS version: Lucid
GTK version:
PyGTK version:

Attachments (1)

gajim.errors.txt (79.9 KB) - added by 6 years ago.
output of gajim -v

Download all attachments as: .zip

Change History (5)

comment:1 Changed 6 years ago by asterix

  • Status changed from new to needinfo

Could you run "gajim -v" and attach the output here so we can see what really happens?

Changed 6 years ago by

output of gajim -v

comment:2 Changed 6 years ago by

fyi, the last run (for the attachment) I set, 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?

comment:3 Changed 6 years ago by asterix

Thanks for the debug output.

Could you edit the /usr/share/gajim/src/common/ file, and modify it line 2587 to add a print line like that:

cfg_proxies = gajim.config.get_per('accounts',,
print gajim.get_jid_from_account(, self.server_resource
our_jid = helpers.parse_jid(gajim.get_jid_from_account( + \
    '/' + self.server_resource)

And show me what is printed in console just before the traceback?

comment:4 Changed 6 years ago by asterix

  • Resolution set to invalid
  • Status changed from needinfo to closed

Please reopen with requested information. You must have a wrong filetransfer proxy configure.

Note: See TracTickets for help on using tickets.