Deleted shares seen on file/folder list while using object store
Steps to reproduce
- Configure nextcloud to use S3 object store as primary store
- Create File/Folder
- Share created file/folder with other user and then delete the shared file/folder
Expected behaviour
The user the file/folder was shared with should see the share until it is deleted. (the mount point from oc_mounts is removed on deleting the share while using local disk storage).
Actual behaviour
User can see the file/folder share even after it was removed, but it can't access it. (the mount point is not deleted from oc_mounts when deleting the shared file/folder)
Server configuration
Operating system: Debian Jessie 8.6
Web server: Apache 2.4.10
Database: MariaDB 10.0.23
PHP version: 5.6.27
Nextcloud version: 11.0.1
Are you using an external user-backend, if yes which one: LDAP
Nextcloud log (data/nextcloud.log)
Nextcloud log
While trying to access the deleted folder share:{"reqId":"B3TdcBk0pzAHmgQTyOvt","remoteAddr":"****","app":"PHP","message":"Call to a member function getCache() on null at /cloud/nextcloud-11.0.1/apps/files_sharing/lib/Cache.php#69","level":3,"time":"2017-03-09T08:50:58+00:00","method":"PROPFIND","url":"/remote.php/webdav/Test","user":"test","version":"11.0.1.2"}
While trying to access the deleted file share:
{"reqId":"UDgKszxroSYiFpaB7NXC","remoteAddr":"***","app":"webdav","message":"Exception: {"Message":"HTTP\/1.1 503 Failed to open file: File with id \"105\" has not been found.","Exception":"Sabre\\DAV\\Exception\\ServiceUnavailable","Code":0,"Trace":"#0 \/cloud\/nextcloud-11.0.1\/3rdparty\/sabre\/dav\/lib\/DAV\/CorePlugin.php(85): OCA\\DAV\\Connector\\Sabre\\File->get()\n#1 [internal function]: Sabre\\DAV\\CorePlugin->httpGet(Object(Sabre\\HTTP\\Request), Object(Sabre\\HTTP\\Response))\n#2 \/cloud\/nextcloud-11.0.1\/3rdparty\/sabre\/event\/lib\/EventEmitterTrait.php(105): call_user_func_array(Array, Array)\n#3 \/cloud\/nextcloud-11.0.1\/3rdparty\/sabre\/dav\/lib\/DAV\/Server.php(479): Sabre\\Event\\EventEmitter->emit('method:GET', Array)\n#4 \/cloud\/nextcloud-11.0.1\/3rdparty\/sabre\/dav\/lib\/DAV\/Server.php(254): Sabre\\DAV\\Server->invokeMethod(Object(Sabre\\HTTP\\Request), Object(Sabre\\HTTP\\Response))\n#5 \/cloud\/nextcloud-11.0.1\/apps\/dav\/appinfo\/v1\/webdav.php(60): Sabre\\DAV\\Server->exec()\n#6 \/cloud\/nextcloud-11.0.1\/remote.php(165): require_once('\/cloud....')\n#7 {main}","File":"\/cloud\/nextcloud-11.0.1\/apps\/dav\/lib\/Connector\/Sabre\/File.php","Line":314,"User":"test"}","level":4,"time":"2017-03-09T08:52:37+00:00","method":"GET","url":"/remote.php/webdav/test.txt","user":"test","version":"11.0.1.2"}