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
{{ message }}
Repository navigation
[7.0.3RC2] Restoring folder from trashbin resets ALL etags #11932
It looks like $reuse is false by default, so that scanning command will reset all etags...
So the fix is either to tell it to keep the etags or remove the scanning completely.
It looks like the scanner isn't even achieving its purpose.
I've noticed that after restoring a file, its versions files are restored properly, but the file cache still shows the versions as being in the trasbhin. The rescanning should have corrected this.
@schiesbn @PVince81 scanning files_trashbin seems to be the right thing to do. I was wrongly under the impression that the scanner would be limited to the view (which is for files_trashbin).
Activity
PVince81 commentedon Nov 4, 2014
Happens in
restoreVersionsfrom the trashbin.I'll later have further tests to make sure that reverting single versions also doesn't cause etag troubles.
PVince81 commentedon Nov 4, 2014
From what I see from debugging, the file scanner is triggered on the storage root here:
https://github.com/owncloud/core/blob/master/apps/files_trashbin/lib/trashbin.php#L936
@icewind1991 @schiesbn do we still need this rescanning ?
I'll continue debugging, I'd expect this call to NOT reset the etags.
PVince81 commentedon Nov 4, 2014
It looks like
$reuseis false by default, so that scanning command will reset all etags...So the fix is either to tell it to keep the etags or remove the scanning completely.
I'll grep the code for other such occurrences.
schiessle commentedon Nov 4, 2014
hm, I'm not sure about the reason for this re-scan. It was introduced by @butonic 0254a3c for object storages compatibility.
PVince81 commentedon Nov 4, 2014
Hmm, rescanning the versions should then run the scanner on "files_versions", not on the root.
PVince81 commentedon Nov 4, 2014
It looks like the scanner isn't even achieving its purpose.
I've noticed that after restoring a file, its versions files are restored properly, but the file cache still shows the versions as being in the trasbhin. The rescanning should have corrected this.
PVince81 commentedon Nov 4, 2014
I'll provide a quickfix and raise another ticket to fix the cache inconsistency.
PVince81 commentedon Nov 4, 2014
Quickfix is here: #11934
PVince81 commentedon Nov 4, 2014
Raised inconsistency ticket here: #11935
butonic commentedon Nov 4, 2014
@schiesbn @PVince81 scanning files_trashbin seems to be the right thing to do. I was wrongly under the impression that the scanner would be limited to the view (which is for files_trashbin).
PVince81 commentedon Nov 4, 2014
Yes, that's what I suspected. Maybe views should be made to always be root views and not allow chrooting.
PVince81 commentedon Nov 6, 2014
I have observed that the following operations will also trigger the bogus rescan: