Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 opened this issue Dec 17, 2024 · 5 comments
Labels
0. Needs triage Issues that need to be triaged bug

Comments

@supr4s
Copy link

supr4s commented Dec 17, 2024

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"}}
@supr4s
Copy link
Author

supr4s commented Dec 17, 2024

Temporary fix: delete/disable the trash app (Deleted files). Now I don't have any problems!

@Jormodn
Copy link

Jormodn commented Dec 19, 2024

I can confirm the bug and the Workaround

@schengawegga
Copy link

I have the same problem.
Disabling the "Deleted files" app will fix this error temporarily, but it is not a good option for my business.
After creating the folder "/demo02/files_trashbin/groupfolders/5" on the filesystem manually, the file can be deleted now, but it will NOT be shown in the users or in the groupfolders trash bin at all.
The file was moved correctly in that filesystem folder, but a recovery of that file will be impossible.

Also the deletion will not be shown in the users activities, but in the groupadmins activities without the filename and a file not found icon.

@supr4s
Copy link
Author

supr4s commented Jan 8, 2025

Yes indeed, it's only a temporary fix, I also need the trashbin but there's no alternative for the moment ..
@joshtrichards perhaps you could pass this to the development teams ?

@Kryptopirat
Copy link

I can also confirm the error and the workaround.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0. Needs triage Issues that need to be triaged bug
Projects
None yet
Development

No branches or pull requests

4 participants