Cyberduck Mountain Duck CLI

Opened 9 years ago

Closed 9 years ago

#3252 closed defect (fixed)

Overwrite action creates 0KB file in Finder

Reported by: jbroccardo@… 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 jbroccardo@… 9 years ago.
text file containing log information

Download all attachments as: .zip

Change History (6)

Changed 9 years ago by jbroccardo@…

text file containing log information

comment:1 Changed 9 years ago 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 9 years ago by dkocher

#3242 closed as duplicate.

comment:3 Changed 9 years ago 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 9 years ago by dkocher

This bug was introduced in r4208.

comment:5 Changed 9 years ago by dkocher

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

In r4867.

Note: See TracTickets for help on using tickets.
swiss made software