Opened 7 years ago

Closed 7 years ago

#5000 closed defect (fixed)

Sending mesages to "something@email.cz@smtp-t.netlab.cz"

Reported by: c-x@… Owned by: transports
Priority: low Milestone: 0.12.2
Component: None Version:
Severity: minor Keywords: Tranport, SMTP
Cc: Blocked By:
Blocking: OS: Unix

Description

Message from gajim:

Traceback (most recent call last):

File "gajim.py", line 449, in _process_events

return self.process_events(fd, flags)

File "/usr/share/gajim/src/common/xmpp/idlequeue.py", line 132, in process_events

obj.pollin()

File "/usr/share/gajim/src/common/xmpp/transports_nb.py", line 352, in pollin

self._do_receive()

File "/usr/share/gajim/src/common/xmpp/transports_nb.py", line 502, in _do_receive

self.on_receive(received)

File "/usr/share/gajim/src/common/xmpp/dispatcher_nb.py", line 359, in dispatch

handlerfunc?(session,stanza)

File "/usr/share/gajim/src/common/connection_handlers.py", line 1686, in _messageCB

frm = helpers.get_full_jid_from_iq(msg)

File "/usr/share/gajim/src/common/helpers.py", line 734, in get_full_jid_from_iq

return parse_jid(str(iq_obj.getFrom()))

File "/usr/share/gajim/src/common/helpers.py", line 117, in parse_jid

return prep(*decompose_jid(jidstring))

File "/usr/share/gajim/src/common/helpers.py", line 169, in prep

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

InvalidFormat?: Neplatný znak v hostname.

I know "something@…@smtp-t.netlab.cz" doesn´t look very well but if you are checking adress before sending you may to do a nice exception and not this...

I just wanted to regisrate to SMTP transport..

Sorry for my English, I am czech.. (as you can see from exception..)

Change History (1)

comment:1 Changed 7 years ago by asterix

  • Milestone set to 0.12.2
  • Resolution set to fixed
  • Status changed from new to closed

(In [a4e267d1952e12d3fb223d3f11378494f40b81d0]) prevent sending single messages to non-valid JID. Fixes #5000

Note: See TracTickets for help on using tickets.