flying-circus / pyfilesystem

Automatically exported from code.google.com/p/pyfilesystem
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Negative buffersize when reading an FTP file #75

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. from fs.opener import fsopen
2. fd = 
fsopen('ftp://smd-ftp.stanford.edu/pub/smd/experiments/11001-12000/11087.xls.gz'
)
3. fd.read()

What is the expected output? What do you see instead?

I expected the contents of the file to be read. Instead, I got the following 
exception:

/home/wynand/enhance_env/sys_enhance/lib/python2.7/site-packages/fs/ftpfs.pyc 
in _translate_exception(self, path, exception)
   1127             raise PermissionDeniedError(str(exception), path=path, msg="FTP error: %s" % str(exception), details=exception)
   1128 
-> 1129         raise exception
   1130 
   1131     @ftperrors

ValueError: negative buffersize in recv

What version of the product are you using? On what operating system?

I'm using SVN revision 714 of pyfilesystem on Ubuntu 11.04 x64.

Please provide any additional information below.

This bug is related to Issue 74 - it seems that the FTP server that I am using 
is triggering a few bugs.

Original issue reported on code.google.com by wynand.w...@gmail.com on 9 Jun 2011 at 10:10

GoogleCodeExporter commented 9 years ago
It was nothing to do with your particular FTP server - it was a logic bug in 
ftpfs.
Fixed in revision 715

Original comment by gc...@loowis.durge.org on 12 Jun 2011 at 6:20

GoogleCodeExporter commented 9 years ago
Thanks for fixing it!

Original comment by wynand.w...@gmail.com on 13 Jun 2011 at 6:27