Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Overwrite action creates 0KB file in Finder #3252

Closed
cyberduck opened this issue Jun 16, 2009 · 4 comments
Closed

Overwrite action creates 0KB file in Finder #3252

cyberduck opened this issue Jun 16, 2009 · 4 comments

Comments

@cyberduck
Copy link
Collaborator

c28bda0 created the issue

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

@cyberduck
Copy link
Collaborator Author

@dkocher commented

#3242 closed as duplicate.

@cyberduck
Copy link
Collaborator Author

@dkocher commented

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.

@cyberduck
Copy link
Collaborator Author

@dkocher commented

This bug was introduced in 859bd87.

@cyberduck
Copy link
Collaborator Author

@dkocher commented

In 4867.

@iterate-ch iterate-ch locked as resolved and limited conversation to collaborators Nov 26, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants