Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#11664 closed defect (fixed)

BridgeDB's email server is currently not responding

Reported by: isis Owned by: isis
Priority: High Milestone:
Component: Circumvention/BridgeDB Version:
Severity: Keywords: bridgedb-email
Cc: isis Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

Likely because I missed another occurrence (during #5232 and related tickets) of the builtin buffer() type having either the new or old interface style. From the server.log:

Unhandled Error
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/twisted/python/log.py", line 88, in callWithLogger
    return callWithContext({"system": lp}, func, *args, **kw)
  File "/usr/lib/python2.7/dist-packages/twisted/python/log.py", line 73, in callWithContext
    return context.call({ILogContext: newCtx}, func, *args, **kw)
  File "/usr/lib/python2.7/dist-packages/twisted/python/context.py", line 118, in callWithContext
    return self.currentContext().callWithContext(ctx, func, *args, **kw)
  File "/usr/lib/python2.7/dist-packages/twisted/python/context.py", line 81, in callWithContext
    return func(*args,**kw)
--- <exception caught here> ---
  File "/usr/lib/python2.7/dist-packages/twisted/internet/posixbase.py", line 614, in _doReadOrWrite
    why = selectable.doRead()
  File "/usr/lib/python2.7/dist-packages/twisted/internet/tcp.py", line 215, in doRead
    return self._dataReceived(data)
  File "/usr/lib/python2.7/dist-packages/twisted/internet/tcp.py", line 221, in _dataReceived
    rval = self.protocol.dataReceived(data)
  File "/usr/lib/python2.7/dist-packages/twisted/protocols/basic.py", line 454, in dataReceived
    self.lineReceived(line)
  File "/usr/lib/python2.7/dist-packages/twisted/mail/smtp.py", line 568, in lineReceived
    return getattr(self, 'state_' + self.mode)(line)
  File "/usr/lib/python2.7/dist-packages/twisted/mail/smtp.py", line 795, in dataLineReceived
    m.eomReceived() for m in self.__messages
  File "/srv/bridges.torproject.org/local/lib/python2.7/site-packages/bridgedb-0.2.0_dirty-py2.7.egg/bridgedb/EmailServer.py", line 394, in eomReceived
    replyToMail(self.lines, self.ctx)
  File "/srv/bridges.torproject.org/local/lib/python2.7/site-packages/bridgedb-0.2.0_dirty-py2.7.egg/bridgedb/EmailServer.py", line 284, in replyToMail
    sendToUser, response = getMailResponse(lines, ctx)
  File "/srv/bridges.torproject.org/local/lib/python2.7/site-packages/bridgedb-0.2.0_dirty-py2.7.egg/bridgedb/EmailServer.py", line 229, in getMailResponse
    gpgContext=ctx.gpgContext)
  File "/srv/bridges.torproject.org/local/lib/python2.7/site-packages/bridgedb-0.2.0_dirty-py2.7.egg/bridgedb/EmailServer.py", line 323, in composeEmail
    mail.write(buffer(body))
exceptions.TypeError: 'buffer' does not have the buffer interface

Child Tickets

Change History (1)

comment:1 Changed 6 years ago by isis

Resolution: fixed
Status: newclosed

Fixed in my fix/11664-email-buffer-interface branch, backported to master, and included in develop.

Last edited 6 years ago by isis (previous) (diff)
Note: See TracTickets for help on using tickets.