Unable to delete files when Talk enabled


#1

Hi all.

I have a bit of a strange issue with Nextcloud 14 rc and Talk.

If I enable Talk 3.99.11 I am unable to delete any files within Nextcloud Files.
The file icon changes to the spinner as expected, it just stays like that indefinitely and the file is not deleted.

If Talk is disabled, files can be deleted as normal.

I was just wondering if anyone else has seen the same behaviour?

The logs show the following two lines repeated multiple times.

Error: Call to a member function getQueryBuilder() on null

/srv/www/htdocs/nextcloud/lib/private/Share20/Manager.php - line 1449:

OCA\Spreed\Share\RoomShareProvider->getAccessList([ OC\Files\N ... }], true)

/srv/www/htdocs/nextcloud/lib/private/Share20/ShareHelper.php - line 52:

OC\Share20\Manager->getAccessList(OC\Files\Node\Folder {}, true, true)

/srv/www/htdocs/nextcloud/apps/activity/lib/FilesHooks.php - line 616:

OC\Share20\ShareHelper->getPathsForAccessList(OC\Files\Node\File {})

/srv/www/htdocs/nextcloud/apps/activity/lib/FilesHooks.php - line 196:

OCA\Activity\FilesHooks->getUserPathsFromPath("/Documents/About.txt", "tony")

/srv/www/htdocs/nextcloud/apps/activity/lib/FilesHooks.php - line 165:

OCA\Activity\FilesHooks->addNotificationsForFileAction("/Documents/About.txt", "file_deleted", "deleted_self", "deleted_by")

/srv/www/htdocs/nextcloud/apps/activity/lib/FilesHooksStatic.php - line 63:

OCA\Activity\FilesHooks->fileDelete("/Documents/About.txt")

/srv/www/htdocs/nextcloud/lib/private/legacy/hook.php - line 106:

OCA\Activity\FilesHooksStatic::fileDelete({ run: true, ... "})

/srv/www/htdocs/nextcloud/lib/private/Files/View.php - line 1259:

OC_Hook::emit("OC_Filesystem", "delete", { run: true, ... "})

/srv/www/htdocs/nextcloud/lib/private/Files/View.php - line 1135:

OC\Files\View->runHooks([ "delete"], "/Documents/About.txt")

/srv/www/htdocs/nextcloud/lib/private/Files/View.php - line 709:

OC\Files\View->basicOperation("unlink", "/Documents/About.txt", [ "delete"])

/srv/www/htdocs/nextcloud/apps/dav/lib/Connector/Sabre/File.php - line 379:

OC\Files\View->unlink("/Documents/About.txt")

/srv/www/htdocs/nextcloud/3rdparty/sabre/dav/lib/DAV/Tree.php - line 179:

OCA\DAV\Connector\Sabre\File->delete()

/srv/www/htdocs/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php - line 291:

Sabre\DAV\Tree->delete("files/tony/ ... t")

Sabre\DAV\CorePlugin->httpDelete(Sabre\HTTP\R ... "}, Sabre\HTTP\Response {})

/srv/www/htdocs/nextcloud/3rdparty/sabre/event/lib/EventEmitterTrait.php - line 105:

call_user_func_array([ Sabre\DAV\ ... "], [ Sabre\HTTP ... }])

/srv/www/htdocs/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 479:

Sabre\Event\EventEmitter->emit("method:DELETE", [ Sabre\HTTP ... }])

/srv/www/htdocs/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 254:

Sabre\DAV\Server->invokeMethod(Sabre\HTTP\R ... "}, Sabre\HTTP\Response {})

/srv/www/htdocs/nextcloud/apps/dav/lib/Server.php - line 293:

Sabre\DAV\Server->exec()

/srv/www/htdocs/nextcloud/apps/dav/appinfo/v2/remote.php - line 35:

OCA\DAV\Server->exec()

/srv/www/htdocs/nextcloud/remote.php - line 163:

require_once("/srv/www/ht ... p")

AND

Error PHP Undefined property: OCA\Spreed\Share\RoomShareProvider::$dbConn at /srv/www/htdocs/nextcloud/apps/spreed/lib/Share/RoomShareProvider.php#868


#2

You can apply this patch


#3

Hello Ivan. Thank you very much for your reply.

I have made the changes and can confirm that this solves the issue with deleting files.

I’ll edit the topic as solved.

Thanks again.


#4

You are welcome :slight_smile:
We will release a new beta version that includes this patch probably tonight.