[zope2-tracker] [Bug 418454] [NEW] Zope FTP Server is broken in Zope 2.12/Python 2.6 due to asyncore change

David Glick dglick at gmail.com
Tue Aug 25 02:32:07 EDT 2009


Public bug reported:

When running Zope 2.12 (current svn checkout) on Python 2.6, attempting
to connect via FTP results in the following traceback:

2009-08-24 22:38:17 INFO ZServer Incoming connection from 127.0.0.1:50099
2009-08-24 22:38:17 ERROR ZServer uncaptured python exception, closing channel <ZServer.FTPServer.FTPServer listening 127.0.0.1:8021 at 0x202d0f8> (<type 'exceptions.AttributeError'>:'collections.deque' object has no attribute 'push' [/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/asyncore.py|read|74] [/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/asyncore.py|handle_read_event|408] [/Users/davidg/ONENW/plonedev-4.0/src/Zope2/src/ZServer/FTPServer.py|handle_accept|666] [/Users/davidg/ONENW/plonedev-4.0/src/Zope2/src/ZServer/FTPServer.py|__init__|92] [/Users/davidg/ONENW/plonedev-4.0/src/Zope2/src/ZServer/medusa/ftp_server.py|__init__|101] [/Users/davidg/ONENW/plonedev-4.0/src/Zope2/src/ZServer/medusa/ftp_server.py|respond|244] [/Users/davidg/ONENW/plonedev-4.0/src/Zope2/src/ZServer/FTPServer.py|push|113])
2009-08-24 22:38:17 WARNING ZServer unhandled close event

This appears to be related to the fact that ZServer.FTPServer's
zope_ftp_channel class overrides the 'push' method which would otherwise
be inherited from asynchat.async_chat (via ZServer.medusa.ftp_server's
ftp_channel class) -- but the implementation of asynchat changed in
Python 2.6 to use a collections.deque instance as its producer_fifo,
instead of a custom class wrapping deque, so the 'push' implementation
in ZServer.FTPServer.zope_ftp_channel is now wrong for Python 2.6.

** Affects: zope2
     Importance: Undecided
         Status: New

-- 
Zope FTP Server is broken in Zope 2.12/Python 2.6 due to asyncore change
https://bugs.launchpad.net/bugs/418454
You received this bug notification because you are a member of Zope 2
Developers, which is subscribed to Zope 2.


More information about the zope2-tracker mailing list