commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rich Stupek (JIRA)" <>
Subject [jira] Commented: (NET-115) [net] FTP - WinZip file downloads are corrupted
Date Mon, 09 Apr 2007 20:31:32 GMT


Rich Stupek commented on NET-115:

I think the bug is that the stream is not flushed before being closed.  You've called Util.copyStream
telling it not to flush, then fail to flush the stream once the copy is completed.  This applies
also to the __storeFile(..) function as well which causes file that are uploaded to be incomplete.

> [net] FTP - WinZip file downloads are corrupted
> -----------------------------------------------
>                 Key: NET-115
>                 URL:
>             Project: Commons Net
>          Issue Type: Bug
>    Affects Versions: 1.4
>         Environment: Operating System: other
> Platform: Other
>            Reporter: Kevin Wilson
> function retrieveFile() corrupts winzipped files. error returned on open is: 
> error [<file>]: start of central directory not found; Zip file corrupt. Possible
> cause: file transfer error.
> this occurs for both .zip and tar.gz files I have tested.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message