Ticket #3197 (new defect)

Opened 10 years ago

Last modified 5 years ago

FTP renaming leads to DATA LOSS

Reported by: dnied Owned by:
Priority: blocker Milestone: Future Releases
Component: mc-vfs Version: 4.8.8
Keywords: Cc: info@…
Blocked By: Blocking:
Branch state: no branch Votes for changeset:


Renaming a file on a remote FTP server while an upload to same server is in progress, mc fails with 'Incomplete file retrieved Delete/Keep?'. Upon clicking 'Keep' the remote file is renamed and made 0-length.

How to reproduce:

  1. with mc, start long upload - in the background - to a remote FTP server;
  1. while uploading, try to rename (via mc's 'move') a different, unrelated file, on the same remote FTP server, in the same directory (a 'move' from the remote FTP server to the remote FTP server, changing only the file name)

What happens:

mc hangs until the background upload terminates. Then displays 'Incomplete file retrieved Delete/Keep?'. Upon clicking 'Keep' the remote file (the one that was to be renamed) is renamed and made 0-length. YOU LOST YOUR FILE. THANK YOU MC !

> mc --version
GNU Midnight Commander 4.8.8
Built with GLib 2.32.4
Using the ncurses library
With subshell support as default
With support for background operations
With mouse support on xterm
With support for X11 events
With multiple codepages support
Virtual File Systems: cpiofs, tarfs, sfs, extfs, ftpfs, fish
Data types: char: 8; int: 32; long: 32; void *: 32; size_t: 32; off_t: 64;

Change History

comment:1 Changed 10 years ago by andrew_b

  • Component changed from mc-core to mc-vfs

comment:2 Changed 5 years ago by metux

  • Cc info@… added
Note: See TracTickets for help on using tickets.