Hi,

I've added the rename capability to the Zope FTP-server,
so I could use the KDE FTP client (this is a known Zope bug).

I attached the 3 modified files (from the 2.2.5 src distro).

There is however another problem in the ZOPE ftpd which
is probably not related to my patches, but for which I have
not found the cause.

The SIZE command (used by the KDE ftp-client as a 
kind of file-exists probe)
reports the size of identical named objects
higher in the tree, to reproduce:

copy with the KDE FTP client a directory tree which has
fileabc in the top directory and a file "fileabc" in a subdirectory
to the Zope ftp server.

The SIZE command returns a size (for a
non existing object!) but the LIST command works o.k.
(reports an error: could not list directory)


127.0.0.1:3771 <== mkd testdir
127.0.0.1:3771 ==> 257 MKD command successful.
127.0.0.1:3771 <== mkd testdir/adir
127.0.0.1:3771 ==> 257 MKD command successful.
127.0.0.1:3771 <== type I
127.0.0.1:3771 ==> 200 Type set to Binary.
127.0.0.1:3771 <== SIZE testdir/fileabc
127.0.0.1:3771 ==> 550 Error getting file size.
127.0.0.1:3771 <== type I
127.0.0.1:3771 ==> 200 Type set to Binary.
127.0.0.1:3771 <== SIZE testdir/fileabc.part
127.0.0.1:3771 ==> 550 Error getting file size.
127.0.0.1:3771 <== type I
127.0.0.1:3771 ==> 200 Type set to Binary.
127.0.0.1:3771 <== PASV
127.0.0.1:3771 ==> 227 Entering Passive Mode (127,0,0,1,14,190)
127.0.0.1:3771 <== stor testdir/fileabc.part
127.0.0.1:3771 ==> 150 Opening Binary connection for
testdir/fileabc.part
127.0.0.1:3771 ==> 226 Transfer complete.
127.0.0.1:3771 <== RNFR testdir/fileabc.part
127.0.0.1:3771 ==> 350 RNFR command successful.
127.0.0.1:3771 <== RNTO testdir/fileabc
127.0.0.1:3771 ==> 250 RNTO command successful.
127.0.0.1:3771 <== SITE CHMOD 644 testdir/fileabc
127.0.0.1:3771 ==> 500 'SITE': command not understood.
127.0.0.1:3771 <== type I
127.0.0.1:3771 ==> 200 Type set to Binary.
127.0.0.1:3771 <== SIZE testdir/adir/fileabc
127.0.0.1:3771 ==> 213 2
127.0.0.1:3771 <== cwd testdir/adir/fileabc
127.0.0.1:3771 ==> 550 No such directory.
127.0.0.1:3771 <== type A
127.0.0.1:3771 ==> 200 Type set to ASCII.
127.0.0.1:3771 <== PASV
127.0.0.1:3771 ==> 227 Entering Passive Mode (127,0,0,1,14,192)
127.0.0.1:3771 <== list testdir/adir/fileabc
127.0.0.1:3771 ==> 550 Could not list directory.                     

-- 
Tom Vijlbrief       [EMAIL PROTECTED]

FTPRequest.py

FTPServer.py

ftp_server.py

Reply via email to