Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 692D546E1 for ; Mon, 23 May 2011 20:04:28 +0000 (UTC) Received: (qmail 26850 invoked by uid 500); 23 May 2011 20:04:28 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 26793 invoked by uid 500); 23 May 2011 20:04:28 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 26785 invoked by uid 99); 23 May 2011 20:04:28 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 May 2011 20:04:28 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 May 2011 20:04:27 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 590DEDA068 for ; Mon, 23 May 2011 20:03:47 +0000 (UTC) Date: Mon, 23 May 2011 20:03:47 +0000 (UTC) From: "Sebb (JIRA)" To: issues@commons.apache.org Message-ID: <1103878720.37108.1306181027361.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <2010321352.31527.1305918767748.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Issue Comment Edited] (NET-409) FTPClient truncates file (storeFile method) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/NET-409?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13038171#comment-13038171 ] Sebb edited comment on NET-409 at 5/23/11 8:02 PM: --------------------------------------------------- That explains why my test worked and yours did not. As it happens, the file I used was a multiple of 2k bytes, so the error was not exposed. Code has been fixed now, and will be in the next release. Snapshot has been uploaded to https://repository.apache.org/content/repositories/snapshots/commons-net/commons-net/3.0.1-SNAPSHOT/ Thanks for reporting the issue. was (Author: sebb@apache.org): That explains why my test worked and yours did not. As it happens, the file I used was a multiple of 2k bytes, so the error was not exposed. Code has been fixed now, and will be in the next release. I'll upload 3.0.1 SNAPSHOT shortly if you want to try that. > FTPClient truncates file (storeFile method) > ------------------------------------------- > > Key: NET-409 > URL: https://issues.apache.org/jira/browse/NET-409 > Project: Commons Net > Issue Type: Bug > Components: FTP > Affects Versions: 3.0 > Environment: Windows 7/Eclipse 3.6.2 > Reporter: Jon Ericson > Fix For: 3.0.1 > > > Functionality works fine on commons-net-2.2. Error occurred after upgrading library to commons-net-3.0 version. Sending a file from Windows 7 to CentOS/Linux using FTPClient storeFile method results in truncation of files over 2k in size. Rolling back upgrade to commons-net-2.2 version fixes problem. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira