Skip to content

Can't delete files from subfolder of groupfolder after update to 19.1.5 #4010

@heisenbol

Description

@heisenbol

I am on nextcloud 31.0.9 with php 8.3 and have several groupfolders.

2 days ago, I updated groupfolders from 19.1.4 to 19.1.5 and since then, I can not delete files created in subfolders of groupfolders.

I work only with the web interface. I get a ""Delete file" action failed" notification

The error I am getting in the logs is (Details at the end)
Error webdav NotFoundException /username/files_trashbin/groupfolders/17/SUBFOLDERNAME

Steps to reproduce

  1. create a file in a subfolder of a groupfolder (tried with md file)
  2. try to delete it

Expected behaviour

the file should get deleted

Actual behaviour

see a "Delete file" action failed notification

Server configuration

Operating system: Debian

Web server: Apache

Database: mariadb 11.4

PHP version: 8.3

Nextcloud version: 31.0.9

Team folders version: 19.1.5

Updated from an older Nextcloud/ownCloud or fresh install:

Where did you install Nextcloud from:

Are you using external storage, if yes which one: no

Are you using encryption: no

Are you using an external user-backend, if yes which one: no

The log entries:

[webdav] Error: /USERNAME/files_trashbin/groupfolders/17/SUBFOLDERNAME
	DELETE /remote.php/dav/files/USERNAME/GROUPFOLDERNAME/SUBFOLDERNAME/FILENAME.md
	from IP by USERNAME at Sep 23, 2025, 10:11:17 AM




{
  "reqId": "OtIwzd4El3AirTg9j0OJ",
  "level": 3,
  "time": "2025-09-23T07:11:17+00:00",
  "remoteAddr": "2001:648:2960:14::80",
  "user": "USERNAME",
  "app": "webdav",
  "method": "DELETE",
  "url": "/remote.php/dav/files/USERNAME/GROUPFOLDERNAME/SUBFOLDERNAME/FILENAME.md",
  "message": "/USERNAME/files_trashbin/groupfolders/17/SUBFOLDERNAME",
  "userAgent": "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:143.0) Gecko/20100101 Firefox/143.0",
  "version": "31.0.9.1",
  "exception": {
    "Exception": "OCP\\Files\\NotFoundException",
    "Message": "/USERNAME/files_trashbin/groupfolders/17/SUBFOLDERNAME",
    "Code": 0,
    "Trace": [
      {
        "file": "/data/nextcloud/site/lib/private/Files/Node/LazyFolder.php",
        "line": 138,
        "function": "get",
        "class": "OC\\Files\\Node\\Root",
        "type": "->"
      },
      {
        "file": "/data/nextcloud/site/apps/richdocuments/lib/Storage/SecureViewWrapper.php",
        "line": 96,
        "function": "get",
        "class": "OC\\Files\\Node\\LazyFolder",
        "type": "->"
      },
      {
        "file": "/data/nextcloud/site/apps/richdocuments/lib/Storage/SecureViewWrapper.php",
        "line": 109,
        "function": "shouldSecure",
        "class": "OCA\\Richdocuments\\Storage\\SecureViewWrapper",
        "type": "->"
      },
      {
        "file": "/data/nextcloud/site/apps/richdocuments/lib/Storage/SecureViewWrapper.php",
        "line": 66,
        "function": "checkSourceAndTarget",
        "class": "OCA\\Richdocuments\\Storage\\SecureViewWrapper",
        "type": "->"
      },
      {
        "file": "/data/nextcloud/site/apps/groupfolders/lib/Trash/TrashBackend.php",
        "line": 262,
        "function": "moveFromStorage",
        "class": "OCA\\Richdocuments\\Storage\\SecureViewWrapper",
        "type": "->"
      },
      {
        "file": "/data/nextcloud/site/apps/files_trashbin/lib/Trash/TrashManager.php",
        "line": 85,
        "function": "moveToTrash",
        "class": "OCA\\GroupFolders\\Trash\\TrashBackend",
        "type": "->"
      },
      {
        "file": "/data/nextcloud/site/apps/files_trashbin/lib/Storage.php",
        "line": 138,
        "function": "moveToTrash",
        "class": "OCA\\Files_Trashbin\\Trash\\TrashManager",
        "type": "->"
      },
      {
        "file": "/data/nextcloud/site/apps/files_trashbin/lib/Storage.php",
        "line": 48,
        "function": "doDelete",
        "class": "OCA\\Files_Trashbin\\Storage",
        "type": "->"
      },
      {
        "file": "/data/nextcloud/site/apps/files_accesscontrol/lib/StorageWrapper.php",
        "line": 178,
        "function": "unlink",
        "class": "OCA\\Files_Trashbin\\Storage",
        "type": "->"
      },
      {
        "file": "/data/nextcloud/site/lib/private/Files/Storage/Wrapper/Wrapper.php",
        "line": 130,
        "function": "unlink",
        "class": "OCA\\FilesAccessControl\\StorageWrapper",
        "type": "->"
      },
      {
        "file": "/data/nextcloud/site/lib/private/Files/View.php",
        "line": 1211,
        "function": "unlink",
        "class": "OC\\Files\\Storage\\Wrapper\\Wrapper",
        "type": "->"
      },
      {
        "file": "/data/nextcloud/site/lib/private/Files/View.php",
        "line": 676,
        "function": "basicOperation",
        "class": "OC\\Files\\View",
        "type": "->"
      },
      {
        "file": "/data/nextcloud/site/apps/dav/lib/Connector/Sabre/File.php",
        "line": 508,
        "function": "unlink",
        "class": "OC\\Files\\View",
        "type": "->"
      },
      {
        "file": "/data/nextcloud/site/3rdparty/sabre/dav/lib/DAV/Tree.php",
        "line": 197,
        "function": "delete",
        "class": "OCA\\DAV\\Connector\\Sabre\\File",
        "type": "->"
      },
      {
        "file": "/data/nextcloud/site/3rdparty/sabre/dav/lib/DAV/CorePlugin.php",
        "line": 281,
        "function": "delete",
        "class": "Sabre\\DAV\\Tree",
        "type": "->"
      },
      {
        "file": "/data/nextcloud/site/3rdparty/sabre/event/lib/WildcardEmitterTrait.php",
        "line": 89,
        "function": "httpDelete",
        "class": "Sabre\\DAV\\CorePlugin",
        "type": "->"
      },
      {
        "file": "/data/nextcloud/site/3rdparty/sabre/dav/lib/DAV/Server.php",
        "line": 472,
        "function": "emit",
        "class": "Sabre\\DAV\\Server",
        "type": "->"
      },
      {
        "file": "/data/nextcloud/site/apps/dav/lib/Connector/Sabre/Server.php",
        "line": 49,
        "function": "invokeMethod",
        "class": "Sabre\\DAV\\Server",
        "type": "->"
      },
      {
        "file": "/data/nextcloud/site/apps/dav/lib/Server.php",
        "line": 401,
        "function": "start",
        "class": "OCA\\DAV\\Connector\\Sabre\\Server",
        "type": "->"
      },
      {
        "file": "/data/nextcloud/site/apps/dav/appinfo/v2/remote.php",
        "line": 21,
        "function": "exec",
        "class": "OCA\\DAV\\Server",
        "type": "->"
      },
      {
        "file": "/data/nextcloud/site/remote.php",
        "line": 145,
        "args": [
          "/data/nextcloud/site/apps/dav/appinfo/v2/remote.php"
        ],
        "function": "require_once"
      }
    ],
    "File": "/data/nextcloud/site/lib/private/Files/Node/Root.php",
    "Line": 182,
    "message": "/USERNAME/files_trashbin/groupfolders/17/SUBFOLDERNAME",
    "exception": [],
    "CustomMessage": "/USERNAME/files_trashbin/groupfolders/17/SUBFOLDERNAME"
  },
  "id": "68d2482f9f562"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    1. to developIssues that are ready for developmentbug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions