[Zope] strange ftp problem

Markus Schaber markus.schaber@student.uni-ulm.de
Wed, 16 Jan 2002 12:19:46 +0100


Hi,

I experience strange problems when fetching binary files out of the zope
database.

I downloaded it several, all versions differ, and are different from the
original (downloading per http works fine, it gives the correct file).

Example: 

FTP commandline (after logging in and changing working directory):
ftp> put putty.exe
local: putty.exe remote: putty.exe
227 Entering Passive Mode (134,60,17,60,187,111).
150 Opening Binary connection for putty.exe
100% |*************************************|   220 KB  880.30 KB/s   
00:00 ETA
226 Transfer complete.
225280 bytes sent in 00:00 (443.89 KB/s)
ftp> get putty.exe putty2.exe
local: putty2.exe remote: putty.exe
227 Entering Passive Mode (134,60,17,60,187,117).
150 Opening Binary mode data connection for file 'putty.exe'
100% |*************************************|   220 KB    1.29 MB/s   
--:-- ETA
226 Transfer complete
225517 bytes received in 00:00 (981.69 KB/s)
ftp> get putty.exe putty3.exe
local: putty3.exe remote: putty.exe
227 Entering Passive Mode (134,60,17,60,187,120).
150 Opening Binary mode data connection for file 'putty.exe'
100% |*************************************|   220 KB    1.29 MB/s   
--:-- ETA
226 Transfer complete
225517 bytes received in 00:00 (1.17 MB/s)

Then, again in the shell:
total 696
-rw-------   1 ms1      users      225280 Jan 16 11:58 putty.exe
-rw-------   1 ms1      users      225517 Jan 16 12:11 putty2.exe
-rw-------   1 ms1      users      225517 Jan 16 12:11 putty3.exe
ms1@wsl12:~/test > diff putty2.exe putty3.exe
Binary files putty2.exe and putty3.exe differ

Also all damaged versions share the same length, it is not likely to be
a line feed conversion problem (accidental ascii transfer), because this
would give identically damaged files.

This happens with different types of binary files (I tested exe and zip,
some of my users had problems with wav), but it seems to work fine with
txt, html and images. It appeared at least with linux command line ftp,
wsftp and IE5, so it is likely to be a server problem. Uploading can be
with ftp or http, download per ftp produces damaged files.

I use the debian version of Zope 2.4.2 (source release, python 2.1,
linux2), python 2.1.1, linux2), installed products are - apart from the
standard products - the HTMLDocument 0.9 and my own product (which does
not fiddle anything with FTP at all).

Can anybody reproduce this?
markus
-- 
Markus Schaber - http://www.schabi.de/

Check in to another world - test a _real_ OS.