Users cannot delete files in shared subfolder of group folder

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    • 29.0.10
  • Operating system and version (e.g., Ubuntu 24.04):
    • Debian .1.0-29-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.123-1 (2025-01-02) x86_64 GNU/Linux
  • Web server and version (e.g, Apache 2.4.25):
    • nginx/1.22.1
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • nginx/1.22.1
  • PHP version (e.g, 8.3):
    • fpm as per docker image nextcloud:29.0.10-fpm
  • Is this the first time you’ve seen this error? (Yes / No):
    • Yes
  • When did this problem seem to first start?
    • Only noticed today, but may have been happening a while
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • docker-compose
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • replace me

Summary of the issue you are facing:

I have a group folder (id 45). It contains a subfolder Library/Regions/Scotland Library (writable) which is shared read-write with a group Scotland.

A member of this group has created a subfolder of this shared folder, containing a file. However, they can delete neither the file, nor the subfolder.

Log entries

Nextcloud

{"reqId":"ZListOBvHs3P3eyRwp3P","level":3,"time":"2025-01-20T16:21:24+00:00","remoteAddr":"31.94.22.245","user":"davidbogasphodel","app":"webdav","method":"DELETE","url":"/remote.php/dav/files/davidbogasphodel/Scotland%20Library%20(writable)/email%20signing%20up/qrcode%20-%20sign-up%20form%20-%20xrscotland-emails-1%20-%20REDUNDANT%20-%20doesn't%20delete/REDUNDANT%20-%20doesn't%20delete.jpg","message":"/davidbogasphodel/files_trashbin/groupfolders/45","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36","version":"29.0.10.1","exception":{"Exception":"OCP\\Files\\NotFoundException","Message":"/davidbogasphodel/files_trashbin/groupfolders/45","Code":0,"Trace":[{"file":"/var/www/html/lib/private/Files/Node/LazyFolder.php","line":161,"function":"get","class":"OC\\Files\\Node\\Root","type":"->","args":["/davidbogasphodel/files_trashbin/groupfolders/45"]},{"file":"/var/www/html/custom_apps/groupfolders/lib/Trash/TrashBackend.php","line":270,"function":"get","class":"OC\\Files\\Node\\LazyFolder","type":"->","args":["/davidbogasphodel/files_trashbin/groupfolders/45"]},{"file":"/var/www/html/apps/files_trashbin/lib/Trash/TrashManager.php","line":102,"function":"moveToTrash","class":"OCA\\GroupFolders\\Trash\\TrashBackend","type":"->","args":[{"__class__":"OCA\\Files_Trashbin\\Storage","cache":null,"scanner":null,"watcher":null,"propagator":null,"updater":null},"email signing up/qrcode - sign-up form - xrscotland-emails-1 - REDUNDANT - doesn't delete/REDUNDANT - doesn't delete.jpg"]},{"file":"/var/www/html/apps/files_trashbin/lib/Storage.php","line":190,"function":"moveToTrash","class":"OCA\\Files_Trashbin\\Trash\\TrashManager","type":"->","args":[{"__class__":"OCA\\Files_Trashbin\\Storage","cache":null,"scanner":null,"watcher":null,"propagator":null,"updater":null},"email signing up/qrcode - sign-up form - xrscotland-emails-1 - REDUNDANT - doesn't delete/REDUNDANT - doesn't delete.jpg"]},{"file":"/var/www/html/apps/files_trashbin/lib/Storage.php","line":89,"function":"doDelete","class":"OCA\\Files_Trashbin\\Storage","type":"->","args":["email signing up/qrcode - sign-up form - xrscotland-emails-1 - REDUNDANT - doesn't delete/REDUNDANT - doesn't delete.jpg","unlink"]},{"file":"/var/www/html/lib/private/Files/View.php","line":1171,"function":"unlink","class":"OCA\\Files_Trashbin\\Storage","type":"->","args":["email signing up/qrcode - sign-up form - xrscotland-emails-1 - REDUNDANT - doesn't delete/REDUNDANT - doesn't delete.jpg"]},{"file":"/var/www/html/lib/private/Files/View.php","line":705,"function":"basicOperation","class":"OC\\Files\\View","type":"->","args":["unlink","/Scotland Library (writable)/email signing up/qrcode - sign-up form - xrscotland-emails-1 - REDUNDANT - doesn't delete/REDUNDANT - doesn't delete.jpg",["delete"]]},{"file":"/var/www/html/apps/dav/lib/Connector/Sabre/File.php","line":543,"function":"unlink","class":"OC\\Files\\View","type":"->","args":["/Scotland Library (writable)/email signing up/qrcode - sign-up form - xrscotland-emails-1 - REDUNDANT - doesn't delete/REDUNDANT - doesn't delete.jpg"]},{"file":"/var/www/html/3rdparty/sabre/dav/lib/DAV/Tree.php","line":197,"function":"delete","class":"OCA\\DAV\\Connector\\Sabre\\File","type":"->","args":[]},{"file":"/var/www/html/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":281,"function":"delete","class":"Sabre\\DAV\\Tree","type":"->","args":["files/davidbogasphodel/Scotland Library (writable)/email signing up/qrcode - sign-up form - xrscotland-emails-1 - REDUNDANT - doesn't delete/REDUNDANT - doesn't delete.jpg"]},{"file":"/var/www/html/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"httpDelete","class":"Sabre\\DAV\\CorePlugin","type":"->","args":[{"__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},{"file":"/var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php","line":472,"function":"emit","class":"Sabre\\DAV\\Server","type":"->","args":["method:DELETE",[{"__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]]},{"file":"/var/www/html/apps/dav/lib/Connector/Sabre/Server.php","line":61,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->","args":[{"__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},{"file":"/var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php","line":321,"function":"start","class":"OCA\\DAV\\Connector\\Sabre\\Server","type":"->","args":[]},{"file":"/var/www/html/apps/dav/lib/Server.php","line":393,"function":"exec","class":"Sabre\\DAV\\Server","type":"->","args":[]},{"file":"/var/www/html/apps/dav/appinfo/v2/remote.php","line":35,"function":"exec","class":"OCA\\DAV\\Server","type":"->","args":[]},{"file":"/var/www/html/remote.php","line":172,"args":["/var/www/html/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/var/www/html/lib/private/Files/Node/Root.php","Line":212,"message":"/davidbogasphodel/files_trashbin/groupfolders/45","exception":[],"CustomMessage":"/davidbogasphodel/files_trashbin/groupfolders/45"},"id":"678e78adaa25a"}```

### Configuration
 
#### Nextcloud

The output of `occ config:list system` or similar is best, but, if not possible, the contents of your `config.php` file from `/path/to/nextcloud` is fine (make sure to remove any identifiable information!):

$CONFIG = array (
‘trusted_domains’ =>
array (
0 => ‘localhost’,
),
‘datadirectory’ => ‘/data/nextcloud/ncdata’,
‘dbtype’ => ‘mysql’,
‘version’ => ‘29.0.10.1’,
‘overwrite.cli.url’ => ‘http://localhost’,
‘dbname’ => ‘nextcloud’,
‘dbhost’ => ‘db’,
‘dbport’ => ‘’,
‘dbtableprefix’ => ‘oc_’,
‘installed’ => true,
‘activity_expire_days’ => 1,
‘memcache.locking’ => ‘\OC\Memcache\Redis’,
‘redis’ =>
array (
‘host’ => ‘redis’,
‘password’ => ‘’,
‘port’ => 6379,
),
‘memcache.distributed’ => ‘\OC\Memcache\Redis’,
‘memcache.local’ => ‘\OC\Memcache\APCu’,
‘maintenance’ => false,
‘default_locale’ => ‘en_GB’,
‘default_language’ => ‘en-GB’,
‘defaultapp’ => ‘files’,
‘loglevel’ => 2,
‘updater.release.channel’ => ‘stable’,
‘theme’ => ‘’,
‘simpleSignUpLink.shown’ => false,
‘sort_groups_by_name’ => true,
‘mysql.utf8mb4’ => true,
‘trashbin_retention_obligation’ => ‘auto,30’,
‘versions_retention_obligation’ => ‘auto,30’,
‘default_phone_region’ => ‘gb’,
‘maintenance_window_start’ => 1,
‘apps_paths’ =>
array (
0 =>
array (
‘path’ => ‘/var/www/html/apps’,
‘url’ => ‘/apps’,
‘writable’ => false,
),
1 =>
array (
‘path’ => ‘/var/www/html/custom_apps’,
‘url’ => ‘/custom_apps’,
‘writable’ => true,
),
),
‘trusted_proxies’ =>
array (
0 => ‘172.16.12.1’,
),
‘profile.enabled’ => false,
‘hide_login_form’ => true,
);


#### Apps

Enabled:

  • bruteforcesettings: 2.9.0
  • cloud_federation_api: 1.12.0
  • comments: 1.19.0
  • dav: 1.30.1
  • deck: 1.13.3
  • external: 5.4.1
  • federatedfilesharing: 1.19.0
  • files: 2.1.1
  • files_downloadlimit: 2.0.0
  • files_linkeditor: 1.1.21
  • files_pdfviewer: 2.10.0
  • files_reminders: 1.2.0
  • files_sharing: 1.21.0
  • files_trashbin: 1.19.0
  • files_versions: 1.22.0
  • firstrunwizard: 2.18.0
  • forms: 4.3.5
  • groupfolders: 17.0.8
  • groupquota: 0.2.1
  • impersonate: 1.16.0
  • logreader: 2.14.0
  • lookup_server_connector: 1.17.0
  • notifications: 2.17.0
  • oauth2: 1.17.1
  • onlyoffice: 9.5.0
  • password_policy: 1.19.0
  • polls: 7.2.9
  • privacy: 1.13.0
  • provisioning_api: 1.19.0
  • related_resources: 1.4.0
  • serverinfo: 1.19.0
  • settings: 1.12.0
  • sociallogin: 5.7.0
  • text: 3.10.1
  • theming: 2.4.0
  • theming_customcss: 1.18.0
  • twofactor_backupcodes: 1.18.0
  • updatenotification: 1.19.1
  • user_status: 1.9.0
  • viewer: 2.3.0
  • workflow_pdf_converter: 1.14.2
  • workflowengine: 2.11.0
    Disabled:
  • activity: 2.21.1 (installed 2.15.0)
  • admin_audit: 1.19.0
  • circles: 29.0.0-dev (installed 23.1.2)
  • contactsinteraction: 1.10.0 (installed 1.4.0)
  • dashboard: 7.9.0 (installed 7.0.0)
  • encryption: 2.17.0
  • federation: 1.19.0 (installed 1.9.0)
  • files_external: 1.21.0
  • nextcloud_announcements: 1.18.0 (installed 1.12.0)
  • photos: 2.5.0 (installed 1.1.0)
  • recommendations: 2.1.0 (installed 0.6.0)
  • sharebymail: 1.19.0 (installed 1.13.0)
  • support: 1.12.0 (installed 1.6.0)
  • survey_client: 1.17.0 (installed 1.11.0)
  • suspicious_login: 7.0.0
  • systemtags: 1.19.0 (installed 1.8.0)
  • twofactor_totp: 11.0.0-dev
  • user_ldap: 1.20.0
  • weather_status: 1.9.0 (installed 1.3.0)

I have exactly the same issue - when i share a subfolder of a group folder, the share receiver can not delete any files.

Are there any updates on this?