Ticket #3197 (new defect)
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: |
Description
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:
- with mc, start long upload - in the background - to a remote FTP server;
- 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
Note: See
TracTickets for help on using
tickets.