Ticket #3045 (closed defect: fixed)

Opened 22 months ago

Last modified 17 months ago

zeroconf messages and file transfer attempts fail -> traceback

Reported by: baze Owned by: sb
Priority: high Milestone: 0.11.2
Component: link-local messaging Version: svn
Severity: normal Keywords:
Cc: OS: All

Description

when i receive a message from another client via zeroconf messaging, i get this tb:

Traceback (most recent call last):
  File "/usr/share/gajim/src/common/xmpp/idlequeue.py", line 132, in process_events
    obj.pollin()
  File "/usr/share/gajim/src/common/zeroconf/client_zeroconf.py", line 403, in pollin
    self.on_receive(received)
  File "/usr/share/gajim/src/common/zeroconf/client_zeroconf.py", line 224, in _on_receive_document_attrs
    self.Dispatcher.ProcessNonBlocking(data)
  File "/usr/share/gajim/src/common/xmpp/dispatcher_nb.py", line 132, in ProcessNonBlocking
    self.Stream.Parse(data)
  File "/usr/share/gajim/src/common/xmpp/simplexml.py", line 357, in starttag
    self.stream_header_received(ns, name, attrs)
  File "/usr/share/gajim/src/common/zeroconf/client_zeroconf.py", line 194, in _check_stream_start
    self.send_stream_header()
  File "/usr/share/gajim/src/common/zeroconf/client_zeroconf.py", line 184, in send_stream_header
    self.Dispatcher.send("<?xml version='1.0'?>%s>" % str(self.Dispatcher._metastream)[:-2])
  File "/usr/share/gajim/src/common/xmpp/dispatcher_nb.py", line 405, in send
    return self._owner.Connection.send(stanza, now = now)
TypeError: send() got an unexpected keyword argument 'now'

when i try to _send_ sth from gajim via zeroconf, i get this tb:

Traceback (most recent call last):
  File "/usr/share/gajim/src/chat_control.py", line 480, in _on_message_textview_mykeypress_event
    self.send_message(message) # send the message
  File "/usr/share/gajim/src/chat_control.py", line 1178, in send_message
    chatstate = chatstate_to_send, composing_jep = composing_jep):
  File "/usr/share/gajim/src/chat_control.py", line 518, in send_message
    user_nick = self.user_nick)
  File "/usr/share/gajim/src/message_control.py", line 123, in send_message
    user_nick = user_nick)
  File "/usr/share/gajim/src/common/zeroconf/connection_zeroconf.py", line 389, in send_message
    if not self.connection.send(msg_iq, msg != None):
  File "/usr/share/gajim/src/common/zeroconf/client_zeroconf.py", line 633, in send
    if conn.add_stanza(stanza, is_message):
  File "/usr/share/gajim/src/common/zeroconf/client_zeroconf.py", line 141, in add_stanza
    self.send(stanza, is_message)
  File "/usr/share/gajim/src/common/xmpp/dispatcher_nb.py", line 429, in send
    self._owner.Connection.send(stanza, True, now = now)
TypeError: send() got an unexpected keyword argument 'now'

current svn here.

Attachments

Change History

Changed 22 months ago by asterix

  • status changed from new to closed
  • resolution set to fixed
  • milestone changed from 0.11.1 to 0.12

(In [8018]) add now argument to send funtions in zeroconf connection. fixes #3045

Changed 22 months ago by asterix

could you confirm that this patch fixes the pb ?

Changed 22 months ago by baze

yep, that fixed it, thank you. when i try to send a file (or more than one file) from my laptop running gajim svn 8018 to my desktop, i get this error when i confirm the send dialog:

TypeError: _on_send_files() takes exactly 4 arguments (5 given)

while it works fine when i send from the desktop running i think sth about gajim svn 79xx tpo the laptop. but i think that's related to sth else.

sending messages via zeroconf works fine in both directions, though.

Changed 22 months ago by asterix

  • status changed from closed to reopened
  • resolution fixed deleted

hmm it must be related. could you copy the full TraceBack? ?

Changed 22 months ago by asterix

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

reported in #3047

Changed 17 months ago by roidelapluie

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

(In [8634]) add now argument to send funtions in zeroconf connection. fixes #3045

Add/Change #3045 (zeroconf messages and file transfer attempts fail -> traceback)

Author



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