Open PVince81 opened 8 years ago
I guess maybe we shouldn't call getVersions
on a folder when deleting
Hey, this issue has been closed because the label status/STALE
is set and there were no updates for 7 days. Feel free to reopen this issue if you deem it appropriate.
(This is an automated comment from GitMate.io.
Hey, this issue has been closed because the label status/STALE
is set and there were no updates for 7 days. Feel free to reopen this issue if you deem it appropriate.
(This is an automated comment from GitMate.io.)
Hey, this issue has been closed because the label status/STALE
is set and there were no updates for 7 days. Feel free to reopen this issue if you deem it appropriate.
(This is an automated comment from GitMate.io.)
This issue has been automatically closed.
I tried this just now:
1) php occ files_trashbin
2) Login to an ordinary user on the web UI
3) Create a text file ttt.txt
4) Edit it a few times to create some versions
5) Delete the file
6) Look in data/owncloud.log
and see:
{"reqId":"YqXahExBTYRbFr7LIxvb","level":3,"time":"2021-10-07T11:59:10+00:00","remoteAddr":"192.168.1.64","user":"uu1","app":"no app in context","method":"DELETE","url":"\/remote.php\/dav\/files\/uu1\/ttt.txt","message":"Exception: {\"Exception\":\"OCP\\\\Files\\\\NotFoundException\",\"Message\":\"\\\/uu1\\\/files\\\/ttt.txt\",\"Code\":0,\"Trace\":\"#0 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/lib\\\/private\\\/Files\\\/Node\\\/Folder.php(130): OC\\\\Files\\\\Node\\\\Root->get()\\n#1 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/lib\\\/private\\\/Preview.php(1313): OC\\\\Files\\\\Node\\\\Folder->get()\\n#2 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/lib\\\/private\\\/legacy\\\/hook.php(103): OC\\\\Preview::prepare_delete()\\n#3 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/apps\\\/files_versions\\\/lib\\\/Storage.php(255): OC_Hook::emit()\\n#4 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/apps\\\/files_versions\\\/lib\\\/Hooks.php(74): OCA\\\\Files_Versions\\\\Storage::delete()\\n#5 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/lib\\\/private\\\/legacy\\\/hook.php(103): OCA\\\\Files_Versions\\\\Hooks::remove_hook()\\n#6 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/lib\\\/private\\\/Files\\\/View.php(1344): OC_Hook::emit()\\n#7 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/lib\\\/private\\\/Files\\\/View.php(1269): OC\\\\Files\\\\View->runHooks()\\n#8 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/lib\\\/private\\\/Files\\\/View.php(776): OC\\\\Files\\\\View->basicOperation()\\n#9 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/lib\\\/public\\\/Events\\\/EventEmitterTrait.php(50): OC\\\\Files\\\\View->OC\\\\Files\\\\{closure}(*** sensitive parameters replaced ***)\\n#10 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/lib\\\/private\\\/Files\\\/View.php(786): OC\\\\Files\\\\View->emittingCall()\\n#11 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/apps\\\/dav\\\/lib\\\/Connector\\\/Sabre\\\/File.php(431): OC\\\\Files\\\\View->unlink()\\n#12 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/lib\\\/composer\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Tree.php(179): OCA\\\\DAV\\\\Connector\\\\Sabre\\\\File->delete()\\n#13 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/lib\\\/composer\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/CorePlugin.php(281): Sabre\\\\DAV\\\\Tree->delete()\\n#14 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/lib\\\/composer\\\/sabre\\\/event\\\/lib\\\/WildcardEmitterTrait.php(89): Sabre\\\\DAV\\\\CorePlugin->httpDelete()\\n#15 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/lib\\\/composer\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(472): Sabre\\\\DAV\\\\Server->emit()\\n#16 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/lib\\\/composer\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(253): Sabre\\\\DAV\\\\Server->invokeMethod()\\n#17 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/apps\\\/dav\\\/lib\\\/Server.php(336): Sabre\\\\DAV\\\\Server->start()\\n#18 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/apps\\\/dav\\\/appinfo\\\/v2\\\/remote.php(31): OCA\\\\DAV\\\\Server->exec()\\n#19 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/remote.php(165): require_once('\\\/home\\\/phil\\\/git\\\/...')\\n#20 {main}\",\"File\":\"\\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/lib\\\/private\\\/Files\\\/Node\\\/Root.php\",\"Line\":197}"}
{"reqId":"YqXahExBTYRbFr7LIxvb","level":3,"time":"2021-10-07T11:59:10+00:00","remoteAddr":"192.168.1.64","user":"uu1","app":"no app in context","method":"DELETE","url":"\/remote.php\/dav\/files\/uu1\/ttt.txt","message":"Exception: {\"Exception\":\"OCP\\\\Files\\\\NotFoundException\",\"Message\":\"\\\/uu1\\\/files\\\/ttt.txt\",\"Code\":0,\"Trace\":\"#0 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/lib\\\/private\\\/Files\\\/Node\\\/Folder.php(130): OC\\\\Files\\\\Node\\\\Root->get()\\n#1 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/lib\\\/private\\\/Preview.php(1386): OC\\\\Files\\\\Node\\\\Folder->get()\\n#2 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/lib\\\/private\\\/Preview.php(1368): OC\\\\Preview::post_delete()\\n#3 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/lib\\\/private\\\/legacy\\\/hook.php(103): OC\\\\Preview::post_delete_versions()\\n#4 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/apps\\\/files_versions\\\/lib\\\/Storage.php(257): OC_Hook::emit()\\n#5 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/apps\\\/files_versions\\\/lib\\\/Hooks.php(74): OCA\\\\Files_Versions\\\\Storage::delete()\\n#6 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/lib\\\/private\\\/legacy\\\/hook.php(103): OCA\\\\Files_Versions\\\\Hooks::remove_hook()\\n#7 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/lib\\\/private\\\/Files\\\/View.php(1344): OC_Hook::emit()\\n#8 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/lib\\\/private\\\/Files\\\/View.php(1269): OC\\\\Files\\\\View->runHooks()\\n#9 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/lib\\\/private\\\/Files\\\/View.php(776): OC\\\\Files\\\\View->basicOperation()\\n#10 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/lib\\\/public\\\/Events\\\/EventEmitterTrait.php(50): OC\\\\Files\\\\View->OC\\\\Files\\\\{closure}(*** sensitive parameters replaced ***)\\n#11 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/lib\\\/private\\\/Files\\\/View.php(786): OC\\\\Files\\\\View->emittingCall()\\n#12 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/apps\\\/dav\\\/lib\\\/Connector\\\/Sabre\\\/File.php(431): OC\\\\Files\\\\View->unlink()\\n#13 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/lib\\\/composer\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Tree.php(179): OCA\\\\DAV\\\\Connector\\\\Sabre\\\\File->delete()\\n#14 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/lib\\\/composer\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/CorePlugin.php(281): Sabre\\\\DAV\\\\Tree->delete()\\n#15 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/lib\\\/composer\\\/sabre\\\/event\\\/lib\\\/WildcardEmitterTrait.php(89): Sabre\\\\DAV\\\\CorePlugin->httpDelete()\\n#16 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/lib\\\/composer\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(472): Sabre\\\\DAV\\\\Server->emit()\\n#17 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/lib\\\/composer\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(253): Sabre\\\\DAV\\\\Server->invokeMethod()\\n#18 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/apps\\\/dav\\\/lib\\\/Server.php(336): Sabre\\\\DAV\\\\Server->start()\\n#19 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/apps\\\/dav\\\/appinfo\\\/v2\\\/remote.php(31): OCA\\\\DAV\\\\Server->exec()\\n#20 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/remote.php(165): require_once('\\\/home\\\/phil\\\/git\\\/...')\\n#21 {main}\",\"File\":\"\\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/lib\\\/private\\\/Files\\\/Node\\\/Root.php\",\"Line\":197}"}
{"reqId":"YqXahExBTYRbFr7LIxvb","level":3,"time":"2021-10-07T11:59:10+00:00","remoteAddr":"192.168.1.64","user":"uu1","app":"no app in context","method":"DELETE","url":"\/remote.php\/dav\/files\/uu1\/ttt.txt","message":"Exception: {\"Exception\":\"OCP\\\\Files\\\\NotFoundException\",\"Message\":\"\\\/uu1\\\/files\\\/ttt.txt\",\"Code\":0,\"Trace\":\"#0 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/lib\\\/private\\\/Files\\\/Node\\\/Folder.php(130): OC\\\\Files\\\\Node\\\\Root->get()\\n#1 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/lib\\\/private\\\/Preview.php(1313): OC\\\\Files\\\\Node\\\\Folder->get()\\n#2 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/lib\\\/private\\\/legacy\\\/hook.php(103): OC\\\\Preview::prepare_delete()\\n#3 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/apps\\\/files_versions\\\/lib\\\/Storage.php(255): OC_Hook::emit()\\n#4 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/apps\\\/files_versions\\\/lib\\\/Hooks.php(74): OCA\\\\Files_Versions\\\\Storage::delete()\\n#5 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/lib\\\/private\\\/legacy\\\/hook.php(103): OCA\\\\Files_Versions\\\\Hooks::remove_hook()\\n#6 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/lib\\\/private\\\/Files\\\/View.php(1344): OC_Hook::emit()\\n#7 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/lib\\\/private\\\/Files\\\/View.php(1269): OC\\\\Files\\\\View->runHooks()\\n#8 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/lib\\\/private\\\/Files\\\/View.php(776): OC\\\\Files\\\\View->basicOperation()\\n#9 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/lib\\\/public\\\/Events\\\/EventEmitterTrait.php(50): OC\\\\Files\\\\View->OC\\\\Files\\\\{closure}(*** sensitive parameters replaced ***)\\n#10 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/lib\\\/private\\\/Files\\\/View.php(786): OC\\\\Files\\\\View->emittingCall()\\n#11 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/apps\\\/dav\\\/lib\\\/Connector\\\/Sabre\\\/File.php(431): OC\\\\Files\\\\View->unlink()\\n#12 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/lib\\\/composer\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Tree.php(179): OCA\\\\DAV\\\\Connector\\\\Sabre\\\\File->delete()\\n#13 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/lib\\\/composer\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/CorePlugin.php(281): Sabre\\\\DAV\\\\Tree->delete()\\n#14 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/lib\\\/composer\\\/sabre\\\/event\\\/lib\\\/WildcardEmitterTrait.php(89): Sabre\\\\DAV\\\\CorePlugin->httpDelete()\\n#15 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/lib\\\/composer\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(472): Sabre\\\\DAV\\\\Server->emit()\\n#16 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/lib\\\/composer\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(253): Sabre\\\\DAV\\\\Server->invokeMethod()\\n#17 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/apps\\\/dav\\\/lib\\\/Server.php(336): Sabre\\\\DAV\\\\Server->start()\\n#18 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/apps\\\/dav\\\/appinfo\\\/v2\\\/remote.php(31): OCA\\\\DAV\\\\Server->exec()\\n#19 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/remote.php(165): require_once('\\\/home\\\/phil\\\/git\\\/...')\\n#20 {main}\",\"File\":\"\\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/lib\\\/private\\\/Files\\\/Node\\\/Root.php\",\"Line\":197}"}
{"reqId":"YqXahExBTYRbFr7LIxvb","level":3,"time":"2021-10-07T11:59:10+00:00","remoteAddr":"192.168.1.64","user":"uu1","app":"no app in context","method":"DELETE","url":"\/remote.php\/dav\/files\/uu1\/ttt.txt","message":"Exception: {\"Exception\":\"OCP\\\\Files\\\\NotFoundException\",\"Message\":\"\\\/uu1\\\/files\\\/ttt.txt\",\"Code\":0,\"Trace\":\"#0 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/lib\\\/private\\\/Files\\\/Node\\\/Folder.php(130): OC\\\\Files\\\\Node\\\\Root->get()\\n#1 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/lib\\\/private\\\/Preview.php(1386): OC\\\\Files\\\\Node\\\\Folder->get()\\n#2 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/lib\\\/private\\\/Preview.php(1368): OC\\\\Preview::post_delete()\\n#3 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/lib\\\/private\\\/legacy\\\/hook.php(103): OC\\\\Preview::post_delete_versions()\\n#4 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/apps\\\/files_versions\\\/lib\\\/Storage.php(257): OC_Hook::emit()\\n#5 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/apps\\\/files_versions\\\/lib\\\/Hooks.php(74): OCA\\\\Files_Versions\\\\Storage::delete()\\n#6 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/lib\\\/private\\\/legacy\\\/hook.php(103): OCA\\\\Files_Versions\\\\Hooks::remove_hook()\\n#7 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/lib\\\/private\\\/Files\\\/View.php(1344): OC_Hook::emit()\\n#8 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/lib\\\/private\\\/Files\\\/View.php(1269): OC\\\\Files\\\\View->runHooks()\\n#9 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/lib\\\/private\\\/Files\\\/View.php(776): OC\\\\Files\\\\View->basicOperation()\\n#10 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/lib\\\/public\\\/Events\\\/EventEmitterTrait.php(50): OC\\\\Files\\\\View->OC\\\\Files\\\\{closure}(*** sensitive parameters replaced ***)\\n#11 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/lib\\\/private\\\/Files\\\/View.php(786): OC\\\\Files\\\\View->emittingCall()\\n#12 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/apps\\\/dav\\\/lib\\\/Connector\\\/Sabre\\\/File.php(431): OC\\\\Files\\\\View->unlink()\\n#13 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/lib\\\/composer\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Tree.php(179): OCA\\\\DAV\\\\Connector\\\\Sabre\\\\File->delete()\\n#14 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/lib\\\/composer\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/CorePlugin.php(281): Sabre\\\\DAV\\\\Tree->delete()\\n#15 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/lib\\\/composer\\\/sabre\\\/event\\\/lib\\\/WildcardEmitterTrait.php(89): Sabre\\\\DAV\\\\CorePlugin->httpDelete()\\n#16 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/lib\\\/composer\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(472): Sabre\\\\DAV\\\\Server->emit()\\n#17 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/lib\\\/composer\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(253): Sabre\\\\DAV\\\\Server->invokeMethod()\\n#18 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/apps\\\/dav\\\/lib\\\/Server.php(336): Sabre\\\\DAV\\\\Server->start()\\n#19 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/apps\\\/dav\\\/appinfo\\\/v2\\\/remote.php(31): OCA\\\\DAV\\\\Server->exec()\\n#20 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/remote.php(165): require_once('\\\/home\\\/phil\\\/git\\\/...')\\n#21 {main}\",\"File\":\"\\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/lib\\\/private\\\/Files\\\/Node\\\/Root.php\",\"Line\":197}"}
{"reqId":"YqXahExBTYRbFr7LIxvb","level":3,"time":"2021-10-07T11:59:10+00:00","remoteAddr":"192.168.1.64","user":"uu1","app":"no app in context","method":"DELETE","url":"\/remote.php\/dav\/files\/uu1\/ttt.txt","message":"Exception: {\"Exception\":\"OCP\\\\Files\\\\NotFoundException\",\"Message\":\"\\\/uu1\\\/files\\\/ttt.txt\",\"Code\":0,\"Trace\":\"#0 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/lib\\\/private\\\/Files\\\/Node\\\/Folder.php(130): OC\\\\Files\\\\Node\\\\Root->get()\\n#1 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/lib\\\/private\\\/Preview.php(1313): OC\\\\Files\\\\Node\\\\Folder->get()\\n#2 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/lib\\\/private\\\/legacy\\\/hook.php(103): OC\\\\Preview::prepare_delete()\\n#3 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/apps\\\/files_versions\\\/lib\\\/Storage.php(255): OC_Hook::emit()\\n#4 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/apps\\\/files_versions\\\/lib\\\/Hooks.php(74): OCA\\\\Files_Versions\\\\Storage::delete()\\n#5 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/lib\\\/private\\\/legacy\\\/hook.php(103): OCA\\\\Files_Versions\\\\Hooks::remove_hook()\\n#6 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/lib\\\/private\\\/Files\\\/View.php(1344): OC_Hook::emit()\\n#7 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/lib\\\/private\\\/Files\\\/View.php(1269): OC\\\\Files\\\\View->runHooks()\\n#8 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/lib\\\/private\\\/Files\\\/View.php(776): OC\\\\Files\\\\View->basicOperation()\\n#9 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/lib\\\/public\\\/Events\\\/EventEmitterTrait.php(50): OC\\\\Files\\\\View->OC\\\\Files\\\\{closure}(*** sensitive parameters replaced ***)\\n#10 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/lib\\\/private\\\/Files\\\/View.php(786): OC\\\\Files\\\\View->emittingCall()\\n#11 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/apps\\\/dav\\\/lib\\\/Connector\\\/Sabre\\\/File.php(431): OC\\\\Files\\\\View->unlink()\\n#12 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/lib\\\/composer\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Tree.php(179): OCA\\\\DAV\\\\Connector\\\\Sabre\\\\File->delete()\\n#13 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/lib\\\/composer\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/CorePlugin.php(281): Sabre\\\\DAV\\\\Tree->delete()\\n#14 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/lib\\\/composer\\\/sabre\\\/event\\\/lib\\\/WildcardEmitterTrait.php(89): Sabre\\\\DAV\\\\CorePlugin->httpDelete()\\n#15 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/lib\\\/composer\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(472): Sabre\\\\DAV\\\\Server->emit()\\n#16 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/lib\\\/composer\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(253): Sabre\\\\DAV\\\\Server->invokeMethod()\\n#17 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/apps\\\/dav\\\/lib\\\/Server.php(336): Sabre\\\\DAV\\\\Server->start()\\n#18 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/apps\\\/dav\\\/appinfo\\\/v2\\\/remote.php(31): OCA\\\\DAV\\\\Server->exec()\\n#19 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/remote.php(165): require_once('\\\/home\\\/phil\\\/git\\\/...')\\n#20 {main}\",\"File\":\"\\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/lib\\\/private\\\/Files\\\/Node\\\/Root.php\",\"Line\":197}"}
{"reqId":"YqXahExBTYRbFr7LIxvb","level":3,"time":"2021-10-07T11:59:10+00:00","remoteAddr":"192.168.1.64","user":"uu1","app":"no app in context","method":"DELETE","url":"\/remote.php\/dav\/files\/uu1\/ttt.txt","message":"Exception: {\"Exception\":\"OCP\\\\Files\\\\NotFoundException\",\"Message\":\"\\\/uu1\\\/files\\\/ttt.txt\",\"Code\":0,\"Trace\":\"#0 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/lib\\\/private\\\/Files\\\/Node\\\/Folder.php(130): OC\\\\Files\\\\Node\\\\Root->get()\\n#1 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/lib\\\/private\\\/Preview.php(1386): OC\\\\Files\\\\Node\\\\Folder->get()\\n#2 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/lib\\\/private\\\/Preview.php(1368): OC\\\\Preview::post_delete()\\n#3 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/lib\\\/private\\\/legacy\\\/hook.php(103): OC\\\\Preview::post_delete_versions()\\n#4 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/apps\\\/files_versions\\\/lib\\\/Storage.php(257): OC_Hook::emit()\\n#5 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/apps\\\/files_versions\\\/lib\\\/Hooks.php(74): OCA\\\\Files_Versions\\\\Storage::delete()\\n#6 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/lib\\\/private\\\/legacy\\\/hook.php(103): OCA\\\\Files_Versions\\\\Hooks::remove_hook()\\n#7 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/lib\\\/private\\\/Files\\\/View.php(1344): OC_Hook::emit()\\n#8 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/lib\\\/private\\\/Files\\\/View.php(1269): OC\\\\Files\\\\View->runHooks()\\n#9 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/lib\\\/private\\\/Files\\\/View.php(776): OC\\\\Files\\\\View->basicOperation()\\n#10 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/lib\\\/public\\\/Events\\\/EventEmitterTrait.php(50): OC\\\\Files\\\\View->OC\\\\Files\\\\{closure}(*** sensitive parameters replaced ***)\\n#11 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/lib\\\/private\\\/Files\\\/View.php(786): OC\\\\Files\\\\View->emittingCall()\\n#12 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/apps\\\/dav\\\/lib\\\/Connector\\\/Sabre\\\/File.php(431): OC\\\\Files\\\\View->unlink()\\n#13 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/lib\\\/composer\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Tree.php(179): OCA\\\\DAV\\\\Connector\\\\Sabre\\\\File->delete()\\n#14 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/lib\\\/composer\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/CorePlugin.php(281): Sabre\\\\DAV\\\\Tree->delete()\\n#15 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/lib\\\/composer\\\/sabre\\\/event\\\/lib\\\/WildcardEmitterTrait.php(89): Sabre\\\\DAV\\\\CorePlugin->httpDelete()\\n#16 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/lib\\\/composer\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(472): Sabre\\\\DAV\\\\Server->emit()\\n#17 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/lib\\\/composer\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(253): Sabre\\\\DAV\\\\Server->invokeMethod()\\n#18 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/apps\\\/dav\\\/lib\\\/Server.php(336): Sabre\\\\DAV\\\\Server->start()\\n#19 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/apps\\\/dav\\\/appinfo\\\/v2\\\/remote.php(31): OCA\\\\DAV\\\\Server->exec()\\n#20 \\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/remote.php(165): require_once('\\\/home\\\/phil\\\/git\\\/...')\\n#21 {main}\",\"File\":\"\\\/home\\\/phil\\\/git\\\/owncloud\\\/core\\\/lib\\\/private\\\/Files\\\/Node\\\/Root.php\",\"Line\":197}"}
Also stumbled on to this.
Steps
mkdir folder
put folder/bacon.txt
put folder/bacon.txt
<= repeat this to create versionsrmcol folder
Expected
No warnings
Actual
Versions
ownCloud 9.1 / git master
Likely happening in previous versions too.
When trashbin is enabled the folder "files_versions/folder" is already moved away to trash. However when trashbin is not disabled the folder still exists and is mistakenly interpreted as being a version even though it's actually a folder.
Not sure if this can have other nasty consequences...