Opened 9 months ago

Closed 9 months ago

#11877 closed Bug report (rejected)

When deleting a folder named '~', it starts to delete the whole home folder

Reported by: David Owned by:
Priority: normal Component: FileZilla Client
Keywords: deleting home, delete home, home, home folder, delete home folder Cc:
Component version: 3.41.1 Operating system type: OS X
Operating system version: 10.14.3

Description

I was deleting an empty folder called ~ through FileZilla.

However, I started to notice that it was taking way too long to delete 8KB. When I looked at the logs, I saw that it was deleting all files in /home/<user>/... instead o /home/<user>/<path>/~.

Sadly, the damage had been done. I'm filling this bug report so this may not happen to anyone else.

I almost did this myself in the console, before I realized I had to use ./~ instead of ~. I'm not sure how FTP works overall, but a possible fix may be to always include ./ or the full path... no idea though.

Change History (2)

comment:1 Changed 9 months ago by David

I am on macOS 10.14.3 on an iMac (Retina 4K, 21.5-inch, 2017).

Here are some logs when it's deleting the files one by one:

Status:      	Directory listing of "/home/<user>" successful
Status:      	Deleting "/home/<user>/<folder>"
Status:      	Deleting 3 files from "/home/mc/<folder_2>"

comment:2 Changed 9 months ago by Tim Kosse

Resolution: rejected
Status: newclosed

This is a bug in your server, it wrongly interprets relative paths.

~ has no special meaning in terms of the protocol and hence must not be interpreted specially by the server, yet it does, leading to your loss of data.

Note: See TracTickets for help on using tickets.