qbittorrent / qBittorrent

qBittorrent BitTorrent client
https://www.qbittorrent.org
Other
26.73k stars 3.87k forks source link

Rename file will overwrite existing file with same name which is not part of torrent #18323

Open ted423 opened 1 year ago

ted423 commented 1 year ago

qBittorrent & operating system versions

qBittorrent: 4.5.0 x64 Operating system: Ubuntu 22.04.1 LTS Qt: 5.15.3 libtorrent-rasterbar: 2.0.8.0

What is the problem?

rename the filename in content.

two torrent image image

Steps to reproduce

I have all first pic's file and want recheck the secound pic's torrent

false to rename "Cars.2.2011.Hybrid.1080p.BluRay.x264-EbP.mkv" to "Cars Toon Air Mater 1080p BluRay x264-EbP.mkv" than rename the "Cars Toon Air Mater 1080p BluRay x264-EbP.mkv" back to "Cars 2 2011 Hybrid 1080p BluRay x264-EbP.mkv" the 7.79GiB file disapeared

Additional context

No response

Log(s) & preferences file(s)

No response

ted423 commented 1 year ago

rename the "Cars Toon Air Mater 1080p BluRay x264-EbP.mkv" back to "Cars 2 2011 Hybrid 1080p BluRay x264-EbP.mkv" make the 432.2Mib file overwrite the "Cars 2 2011 Hybrid 1080p BluRay x264-EbP.mkv"(7.79GiB) though the file can't hash in secound torrent

thalieht commented 1 year ago

First of all please wrap filenames in ` ` or " " because it's hard to distinguish where they start/end among plain text. What i understood is that you renamed a file to the same name of an existing file in that folder right? I get "Failed to update name" when i try to do that.

ted423 commented 1 year ago

First of all please wrap filenames in or " " because it's hard to distinguish where they start/end among plain text. What i understood is that you renamed a file to the same name of an existing file in that folder right? I get "Failed to update name" when i try to do that.

added ".

for torrent 2, is not hashed. the first wrong step make the filename same as the exist small one. and step 2 make the small file to overwrite other one.

I had meet this situation before,maybe i make a screen record when I had time

ted423 commented 1 year ago

I found same on GUI

ted423 commented 1 year ago

2023-01-05 17-18-57.zip