Cyberduck Mountain Duck CLI

#3252 closed defect (fixed)

Overwrite action creates 0KB file in Finder

Reported by: Owned by: dkocher
Priority: high Milestone: 3.2.1
Component: core Version: 3.2
Severity: critical Keywords: Overwrite
Cc: Architecture:

Description (last modified by dkocher)

OS: 10.5.6 and 10.5.7 Cyberduck: 3.2 (also duplicated with versions going back to 3.0.3; 3.0.3 works correctly)

Problem: When downloading file from FTP share to Desktop, overwriting a file of the same name and type, the overwrite action will fail resulting in a blank, 0K sized file. Can immediately perform the same action again and have a positive result.

Steps to duplicate:

  1. Create a plain text file in text editor. Save file to Desktop with name test.txt.
  2. Connect to FTP share.
  3. Copy test.txt file to FTP share.
  4. Now reverse the previous action. Attempt to copy text.txt from FTP share to Desktop. When prompted, choose to Overwrite file.

At this point the file on the Desktop will be overwritten, but the resulting file will be blank and 0K.

  1. Repeat step 4. The file will now be correctly written to the Desktop, but you will not receive an overwrite prompt again.

Have duplicated with three different machines and two different FTP servers.

See attached file for log data.

Attachments (1)

overwritelog.txt (2.5 KB) - added by on Jun 16, 2009 at 4:33:55 PM.
text file containing log information

Download all attachments as: .zip

Change History (6)

Changed on Jun 16, 2009 at 4:33:55 PM by

text file containing log information

comment:1 Changed on Jun 23, 2009 at 10:03:49 AM by dkocher

  • Component changed from ftp to core
  • Description modified (diff)
  • Milestone set to 3.2.1
  • Status changed from new to assigned

comment:2 Changed on Jun 23, 2009 at 10:05:11 AM by dkocher

#3242 closed as duplicate.

comment:3 Changed on Jun 26, 2009 at 2:54:59 PM by dkocher

I can replicate this. Because we move the existing file to the trash instead of actually overwriting but do this on the main thread there is a timing issue that actually the newly transferred file is moved to the trash instead. In DownloadTransfer:213.

comment:4 Changed on Jun 26, 2009 at 2:56:08 PM by dkocher

This bug was introduced in r4208.

comment:5 Changed on Jun 26, 2009 at 3:14:11 PM by dkocher

  • Resolution set to fixed
  • Status changed from assigned to closed

In r4867.

Note: See TracTickets for help on using tickets.