-
-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cheking files after adding torrent change "date modified" for existing files. #21788
Comments
Probably related to Mark-of-the-Web. |
I'm not sure. I cannot reproduce. |
@GDXN |
It appears that disabling "Mark-of-the-Web" fixes it, I'm going to test for a few days to view if its really fixed. |
Some files update the modification date because these are the files that contain contiguous pieces with the new files. |
That is not the problem, that's the expected behavior. The problem Is that all the files modifications dates are updated not only the affected files while rechecking from a new added torrent and indeed "Mark-of-the-Web" appears to be the cause. |
I can now. Will provide a fix. |
Also use scope guards to handle resources. Closes qbittorrent#21788.
Also use scope guards to handle resources. Closes qbittorrent#21788.
Also use scope guards to handle resources. Closes qbittorrent#21788.
Also use scope guards to handle resources. Closes qbittorrent#21788.
Also use scope guards to handle resources. Closes qbittorrent#21788.
@Chocobo1 I tried various build with the fix and all of then close intermediately. |
You meant they crashed? You can try our CI builds here: https://github.com/qbittorrent/qBittorrent/actions/runs/11755999108 |
@Chocobo1 that version fails for me, in both install and portable mode, with and without clean profile. this is the only that is written in the the log:
|
@GDXN Install the Latest Microsoft Visual C++ Redistributable Version & try the builds again. |
OK, the problem persist if Mark-of-the-Web is enabled and the files are the old ones that don't contain Mark-of-the-Web even if they are complete, if the files contain Mark-of-the-Web it don't happen anymore and that is also a good thing. I find two possible solutions to this:
For me I'm going to have Mark-of-the-Web disabled as in my user case fixes the problem and I think that this need a wiki entry. I need to dust off my programing skills as I haven't touched code in more than 10 years if i want to collaborate more. And thanks for your work. |
Also use scope guards to handle resources. Related qbittorrent#21788. PR qbittorrent#21806.
`TorrentImpl::isDownloading()` was excessively broad which included unexpected events for the case here. So use the underlying state directly. Close qbittorrent#21788.
`TorrentImpl::isDownloading()` was excessively broad which included unexpected events for the case here. So use the underlying state directly. Close qbittorrent#21788.
qBittorrent & operating system versions
PC1
qBittorrent: 5.0.0 x64
Operating system: Windows 10 Home
libtorrent-rasterbar: 1.2.X
PC2
qBittorrent: 5.0.1 x64
Operating system: Windows 10 Pro
libtorrent-rasterbar: 1.2.X
What is the problem?
When added a new torrent that updates and older one and check the existing files the "date modified" is updated for the existing files.
Steps to reproduce
This can be reproduced with the same torrent file as an updated version is not needed for the behavior.
Additional context
This didn't happen in the 4.6.7 that I was using previously and the problem interferes with backup software making it transfer much more data and take longer.
Log(s) & preferences file(s)
qBittorrent.txt
The text was updated successfully, but these errors were encountered: