You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In some bug situations, it can happen that a file was removed from storage but the filecache still contains it. In such situations, it is impossible for the user to delete the file while it still appears in the web UI and Webdav.
One solution is usually running occ files:scan.
However, it would be good if ownCloud could detect this situation and auto-clean the bogus entry.
To detect this:
whenever accessing/deleting a file that is in the file cache but file operation returns "not found"
I get it... but this 'could' open up a can of worms. If a mountpoint is not there (user mounting external disk as their data dir for example) a sync from the client might delete all entries... and with it all shares/comments etc.
Wouldn't it be better to allow deletion of not found files? But a get would return a temp not available?
Activity
DeepDiver1975 commentedon May 9, 2016
but we have to be careful with temporal scenarios ...
PVince81 commentedon May 9, 2016
Indeed, maybe call
file_existsagain on that file to verify that it is indeed gone. (for example after a failed fopen)rullzer commentedon May 10, 2016
I get it... but this 'could' open up a can of worms. If a mountpoint is not there (user mounting external disk as their data dir for example) a sync from the client might delete all entries... and with it all shares/comments etc.
Wouldn't it be better to allow deletion of not found files? But a get would return a temp not available?
PVince81 commentedon Jun 7, 2016
Fixed by #24813 by detecting a failed deletion and then calling
file_existsto double check.lock commentedon Aug 4, 2019
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.