[Zope] strange ftp problem

Andreas Jung Andreas Jung" <andreas@zope.com
Thu, 14 Feb 2002 10:13:38 -0500


I checked at fix for this problem into the CVS (2.4, 2.5, trunk).
The next 2.4.X and 2.5.X releases will have the fix.

- aj 

    ---------------------------------------------------------------------
   -    Andreas Jung                            Zope Corporation       -
  -   EMail: andreas@zope.com                http://www.zope.com      -
 -  "Python Powered"                       http://www.python.org     - 
  -   "Makers of Zope"                       http://www.zope.org      - 
   -            "Life is too short to (re)write parsers"               -
    ---------------------------------------------------------------------

----- Original Message ----- 
From: "Markus Schaber" <markus.schaber@student.uni-ulm.de>
To: <zope@zope.org>
Sent: Thursday, February 14, 2002 05:17
Subject: Re: [Zope] strange ftp problem


> Hi,
> 
> Is there nobody who has any Idea?
> 
> Markus Schaber wrote:
> 
> > 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).
> 
> 
> Markus
> 
> -- 
> "GPL software is not free - the cost is cooperation"
> 
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists - 
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
>