Skip to content

Unable to delete a file/folder after switching to NC 30.0.4 and Group Folder 18.0.8 ("Delete file" action failed) #3496

Open
@supr4s

Description

Hi everyone,

Since upgrading to Nextcloud 30.0.4 and switching to Group Folder 18.0.8, it is no longer possible to delete a folder/file.

This issue will be linked to this one: #2604 => having had no feedback, I tested by updating everything and the initial problem disappeared, but now you can't no longer delete a folder/file.

Steps to reproduce

  1. Create group folders A & B
  2. Both group folders are only set has admin group and no advanced permissions
  3. Inside of each folders create a folder ( x inside of A and y inside of B )
  4. Share folder x to group G_x and share folder y to group G_y
  5. Now set group G_x and G_y to a user
  6. Connect to the user and try to delete a file/folder: permission denied. Create, edit, move => OK but not delete

Expected behaviour

A user with editing rights must be able to make the deletion.

Actual behaviour

From GUI :

"Delete file" action failed

From Nextcloud logs :

{"reqId":"NdoWtV8IPFSTLmSbtFle","level":3,"time":"2024-12-17T13:28:21+00:00","remoteAddr":"x.x.x.x","user":"demo02","app":"webdav","method":"DELETE","url":"/remote.php/dav/files/demo02/PARTAGE-EXAMPLE-COMMUN/hello.txt","message":"/demo02/files_trashbin/groupfolders/5","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:133.0) Gecko/20100101 Firefox/133.0","version":"30.0.4.1","exception":{"Exception":"OCP\\Files\\NotFoundException","Message":"/demo02/files_trashbin/groupfolders/5","Code":0,"Trace":[{"file":"/srv/nextcloud/www/lib/private/Files/Node/LazyFolder.php","line":141,"function":"get","class":"OC\\Files\\Node\\Root","type":"->"},{"file":"/srv/nextcloud/www/apps/groupfolders/lib/Trash/TrashBackend.php","line":245,"function":"get","class":"OC\\Files\\Node\\LazyFolder","type":"->"},{"file":"/srv/nextcloud/www/apps/files_trashbin/lib/Trash/TrashManager.php","line":85,"function":"moveToTrash","class":"OCA\\GroupFolders\\Trash\\TrashBackend","type":"->"},{"file":"/srv/nextcloud/www/apps/files_trashbin/lib/Storage.php","line":168,"function":"moveToTrash","class":"OCA\\Files_Trashbin\\Trash\\TrashManager","type":"->"},{"file":"/srv/nextcloud/www/apps/files_trashbin/lib/Storage.php","line":67,"function":"doDelete","class":"OCA\\Files_Trashbin\\Storage","type":"->"},{"file":"/srv/nextcloud/www/lib/private/Files/View.php","line":1136,"function":"unlink","class":"OCA\\Files_Trashbin\\Storage","type":"->"},{"file":"/srv/nextcloud/www/lib/private/Files/View.php","line":666,"function":"basicOperation","class":"OC\\Files\\View","type":"->"},{"file":"/srv/nextcloud/www/apps/dav/lib/Connector/Sabre/File.php","line":501,"function":"unlink","class":"OC\\Files\\View","type":"->"},{"file":"/srv/nextcloud/www/3rdparty/sabre/dav/lib/DAV/Tree.php","line":197,"function":"delete","class":"OCA\\DAV\\Connector\\Sabre\\File","type":"->"},{"file":"/srv/nextcloud/www/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":281,"function":"delete","class":"Sabre\\DAV\\Tree","type":"->"},{"file":"/srv/nextcloud/www/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"httpDelete","class":"Sabre\\DAV\\CorePlugin","type":"->"},{"file":"/srv/nextcloud/www/3rdparty/sabre/dav/lib/DAV/Server.php","line":472,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/srv/nextcloud/www/apps/dav/lib/Connector/Sabre/Server.php","line":43,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/srv/nextcloud/www/apps/dav/lib/Server.php","line":371,"function":"start","class":"OCA\\DAV\\Connector\\Sabre\\Server","type":"->"},{"file":"/srv/nextcloud/www/apps/dav/appinfo/v2/remote.php","line":19,"function":"exec","class":"OCA\\DAV\\Server","type":"->"},{"file":"/srv/nextcloud/www/remote.php","line":146,"args":["/srv/nextcloud/www/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/srv/nextcloud/www/lib/private/Files/Node/Root.php","Line":187,"message":"/demo02/files_trashbin/groupfolders/5","exception":{},"CustomMessage":"/demo02/files_trashbin/groupfolders/5"}}

Not an isolated case, I have the same thing on a second server (same configuration).

Server configuration

  • Debian 12
  • PHP-FPM 8.2
  • MariaDB 10.11
  • Nextcloud 30.0.4
  • GF 18.0.8

Nextcloud log (data/nextcloud.log)

Nextcloud log
{"reqId":"NdoWtV8IPFSTLmSbtFle","level":3,"time":"2024-12-17T13:28:21+00:00","remoteAddr":"x.x.x.x","user":"demo02","app":"webdav","method":"DELETE","url":"/remote.php/dav/files/demo02/PARTAGE-EXAMPLE-COMMUN/hello.txt","message":"/demo02/files_trashbin/groupfolders/5","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:133.0) Gecko/20100101 Firefox/133.0","version":"30.0.4.1","exception":{"Exception":"OCP\\Files\\NotFoundException","Message":"/demo02/files_trashbin/groupfolders/5","Code":0,"Trace":[{"file":"/srv/nextcloud/www/lib/private/Files/Node/LazyFolder.php","line":141,"function":"get","class":"OC\\Files\\Node\\Root","type":"->"},{"file":"/srv/nextcloud/www/apps/groupfolders/lib/Trash/TrashBackend.php","line":245,"function":"get","class":"OC\\Files\\Node\\LazyFolder","type":"->"},{"file":"/srv/nextcloud/www/apps/files_trashbin/lib/Trash/TrashManager.php","line":85,"function":"moveToTrash","class":"OCA\\GroupFolders\\Trash\\TrashBackend","type":"->"},{"file":"/srv/nextcloud/www/apps/files_trashbin/lib/Storage.php","line":168,"function":"moveToTrash","class":"OCA\\Files_Trashbin\\Trash\\TrashManager","type":"->"},{"file":"/srv/nextcloud/www/apps/files_trashbin/lib/Storage.php","line":67,"function":"doDelete","class":"OCA\\Files_Trashbin\\Storage","type":"->"},{"file":"/srv/nextcloud/www/lib/private/Files/View.php","line":1136,"function":"unlink","class":"OCA\\Files_Trashbin\\Storage","type":"->"},{"file":"/srv/nextcloud/www/lib/private/Files/View.php","line":666,"function":"basicOperation","class":"OC\\Files\\View","type":"->"},{"file":"/srv/nextcloud/www/apps/dav/lib/Connector/Sabre/File.php","line":501,"function":"unlink","class":"OC\\Files\\View","type":"->"},{"file":"/srv/nextcloud/www/3rdparty/sabre/dav/lib/DAV/Tree.php","line":197,"function":"delete","class":"OCA\\DAV\\Connector\\Sabre\\File","type":"->"},{"file":"/srv/nextcloud/www/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":281,"function":"delete","class":"Sabre\\DAV\\Tree","type":"->"},{"file":"/srv/nextcloud/www/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"httpDelete","class":"Sabre\\DAV\\CorePlugin","type":"->"},{"file":"/srv/nextcloud/www/3rdparty/sabre/dav/lib/DAV/Server.php","line":472,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/srv/nextcloud/www/apps/dav/lib/Connector/Sabre/Server.php","line":43,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/srv/nextcloud/www/apps/dav/lib/Server.php","line":371,"function":"start","class":"OCA\\DAV\\Connector\\Sabre\\Server","type":"->"},{"file":"/srv/nextcloud/www/apps/dav/appinfo/v2/remote.php","line":19,"function":"exec","class":"OCA\\DAV\\Server","type":"->"},{"file":"/srv/nextcloud/www/remote.php","line":146,"args":["/srv/nextcloud/www/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/srv/nextcloud/www/lib/private/Files/Node/Root.php","Line":187,"message":"/demo02/files_trashbin/groupfolders/5","exception":{},"CustomMessage":"/demo02/files_trashbin/groupfolders/5"}}

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions