commons-dev mailing list archives

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

    [ https://issues.apache.org/jira/browse/NET-115?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12487624
] 

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: https://issues.apache.org/jira/browse/NET-115
>             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: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message