Re: [Zope-dev] Added rename to ZOPE FTP server (another bug: jpg images are not autodetected)

2001-01-28 Thread Tom Vijlbrief

Joachim Werner wrote:
 
 Hi!
 
 I've found one problem with FTP and KDE: jpg-images are uploaded as
 files, not images. This works fine with wedav (tried cadaver) and plain
 command line FTP, but using KDE2 konqueror it doesn't work. Maybe
 because of the partial upload magic it does?
 

Yes, I checked the code (ZClasses/Method.py, PUT_factory)
and that's the reason. The Zope ftp server checks the extension
when a file is created with "put", but not when it is renamed
to a file with the .jpg (or other) extension.

A method manage_FTPrename should be added to this
file which does the same checks.

Fixing this bug and the problem with identical named files in
different directories in the object filesystem tree (described
in my original posting) should not be very hard
to fix for someone with knowledge of the object file system.

I don't have that knowledge so I'll leave it to others to
fix. I suggest posting both problems in the bug collector...

Tom

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




Re: [Zope-dev] Added rename to ZOPE FTP server

2001-01-22 Thread Chris Withers

Tom Vijlbrief wrote:
 
 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).

Cool :-)

Thank you very much

Have you put them into the collector?
http://classic.zope.org:8080/Collector/

cheers,

Chris

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




[Zope-dev] Added rename to ZOPE FTP server

2001-01-20 Thread Tom Vijlbrief

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


Re: [Zope-dev] Added rename to ZOPE FTP server

2001-01-20 Thread Joachim Werner

Tom Vijlbrief wrote:

 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).
 
Dear people at DC! Please get that into the CVS ASAP. This is a very big 
issue for Linux users! (I reported this bug right after KDE2 came out)

Cheers

Joachim




___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )