I can’t delete file from external storage when I enable “allow upload and edit” in sharing link.But “delete” option is effective in local storage sharing link.
error log:
Error
public
2020-03-15T23:21:27+0800
Error:
Call to a member function getUID() on null
- /var/www/html/apps/activity/lib/FilesHooks.php - line 638:OC\Files\View->getOwner("/Onedrive/N … g")
- /var/www/html/apps/activity/lib/FilesHooks.php - line 190:OCA\Activity\FilesHooks->getSourcePathAndOwner("/Onedrive/N … g")
- /var/www/html/apps/activity/lib/FilesHooks.php - line 165:OCA\Activity\FilesHooks->addNotificationsForFileAction("/Onedrive/N … g", “file_deleted”, “deleted_self”, “deleted_by”)
- /var/www/html/apps/activity/lib/FilesHooksStatic.php - line 63:OCA\Activity\FilesHooks->fileDelete("/Onedrive/N … g")
- /var/www/html/lib/private/legacy/hook.php - line 111:OCA\Activity\FilesHooksStatic::fileDelete({ run: true, … "})
- /var/www/html/lib/private/Files/View.php - line 1275:OC_Hook::emit(“OC_Filesystem”, “delete”, { run: true, … "})
- /var/www/html/lib/private/Files/View.php - line 1145:OC\Files\View->runHooks([ “delete”], “/Onedrive/N … g”)
- /var/www/html/lib/private/Files/View.php - line 716:OC\Files\View->basicOperation(“unlink”, “/Screenshot … g”, [ “delete”])
- /var/www/html/apps/dav/lib/Connector/Sabre/File.php - line 448:OC\Files\View->unlink("/Screenshot … g")
- /var/www/html/3rdparty/sabre/dav/lib/DAV/Tree.php - line 179:OCA\DAV\Connector\Sabre\File->delete()
- /var/www/html/3rdparty/sabre/dav/lib/DAV/CorePlugin.php - line 287:Sabre\DAV\Tree->delete(“Screenshot_ … g”)
- <>Sabre\DAV\CorePlugin->httpDelete(Sabre\HTTP\R … "}, Sabre\HTTP\Response {})
- /var/www/html/3rdparty/sabre/event/lib/EventEmitterTrait.php - line 105:call_user_func_array([ Sabre\DAV\ … "], [ Sabre\HTTP … }])
- /var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php - line 479:Sabre\Event\EventEmitter->emit(“method:DELETE”, [ Sabre\HTTP … }])
- /var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php - line 254:Sabre\DAV\Server->invokeMethod(Sabre\HTTP\R … "}, Sabre\HTTP\Response {})
- /var/www/html/apps/dav/appinfo/v1/publicwebdav.php - line 109:Sabre\DAV\Server->exec()
- /var/www/html/public.php - line 81:require_once("/var/www/ht … p")