#1284 Unwanted recursive file removal (data loss!)

open
nobody
None
1
2013-11-05
2013-11-05
No

Client: 2.7.10 32-bit on Win7
Server: 2.7.10 32-bit on WinXP in VirtualBox

Create the following structure on the server:

C:\test
C:\test\sub1
C:\test\sub1\file1.txt
C:\test\sub1\file2.txt
C:\test\sub2
C:\test\sub2\file3.txt
C:\test\sub2\file4.txt

Connect to the server, open file transfer, navigate to C:\test\sub1 on the
remote side.

Select file1.txt, file2.txt and the ".." entry (!) used to go up one level.

Click "Remove".

Results:
- "Error: failed to get file list in remote folder '/C:/test/sub1'" in client.
- The complete folder C:\test is gone!

This can easily happen. Say, you have many files in one folder, scrolled down,
selected the last one and want to delete them all. So you press SHIFT + HOME to
mark them all, what will also mark the "..". When you press "Remove" now, files
above (!) the current directory will be deleted.

This is surely not what the user wants or expects, and it can cause serious data
loss - in fact, it did. :(

Discussion


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks