Opened 9 years ago

#4938 new Bug

Data destroyed (deleted) when moving! (Reproducible)

Reported by: zeroedout Owned by:
Priority: Normal Milestone: None Set
Component: Daemon Version: 2.50
Severity: Normal Keywords: delete destroy symlink trashed lost data
Cc:

Description

Summary: When moving data from transmission's download folder, to a folder that contains a symlink with the name of the data's root folder back to the downloads folder, the data is destroyed!

How to reproduce: Let's say I have a torrent that has a folder called Fullmetal and data within that folder. It is sitting in /var/lib/transmission-daemon/downloads/ I then create a symlink to it in /home/zeroedout/anime/ so it looks like /home/zeroedout/anime/Fullmetal -----> /var/lib/transmission-daemon/downloads/Fullmetal When I use the transmission-remote to move the file from downloads, to the anime directory, the data disappears!

Other Details: There is *nothing* in syslog about moving the data either, only that the data cannot be found. I've also searched through the system with find. I would expect transmission to fail or to give an error, not delete the data.

This is Transmission 2.5 on Debian, x86-64.

How to fix: A friendly IRC user pointed this out

[13:48:50] <bezeek>... Sounds like Transmission might be deleting the originals, not realizing they are also the new files. Since the syscall likely returns success, Transmission would not know the difference intuitively, but one solution would be for Transmission to enumerate the new path and check that it does not lead to the old path. Even if the devs on Trac decide it's not Transmission's fault, they might be nice enough to forward the issue upstream.

I originally posted this at https://forum.transmissionbt.com/viewtopic.php?f=2&t=13477#p60524 for comment.

Change History (0)

Note: See TracTickets for help on using tickets.