nextcloud / nextcloud/groupfolders

Groupfolder information gets lost when folder is trashed

Open
#2,924 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

0. Needs triage bug feature: trashbin
Dominant language
PHP
Stars
343
Forks
106
Avg merge
2d 3h
Merged PRs (30d)
34

Description

Steps to reproduce
  1. Delete a folder from a groupfolder
  2. Use a webdav call to list groupfolder-specific information
curl "{NC_URL}/remote.php/dav/trashbin/{NC_USER}/trash/" \
--user "{NC_USER}:{NC_PASS}" \
  -H 'Content-Type: application/xml; charset=UTF-8' \
  -H 'Depth: 1' \
  -X PROPFIND \
  --data-binary '<d:propfind xmlns:d="DAV:" xmlns:nc="http://nextcloud.org/ns"> \
    <d:prop> \
        <nc:trashbin-filename /> \
        <nc:trashbin-original-location /> \
        <nc:trashbin-deletion-time /> \
        <nc:group-folder-id /> \
       <nc:acl-list /> \
        <d:owner-id /> \
        <d:getcontentlength /> \
        <d:getlastmodified/> \
        <d:resourcetype/> \
    </d:prop> \
</d:propfind>' > {list_of_files}
Expected behaviour

The <nc:group-folder-id /> and <nc:acl-list /> properties are returned and contain accurate information.

Actual behaviour

The <nc:group-folder-id /> and <nc:acl-list /> properties are not returned.

Server configuration

Operating system:
Debian 12

**Web server:**nginx

Database:
mariadb

PHP version:
PHP-FPM8.2

Nextcloud version: (see Nextcloud admin page)
27.1.7

Group folders version:
15.3.5

Updated from an older Nextcloud/ownCloud or fresh install:
Fresh

Where did you install Nextcloud from:
tar.gz

Are you using external storage, if yes which one: local/s3/smb/sftp/...
S3

Are you using encryption: yes/no
No

Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/Saml/...
No

Client configuration

not relevant I think

Logs

Nothing significant: nginx log sees the request, Nextcloud.log does not log anything.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the WebDAV PROPFIND request against the trashbin after deleting a folder from a groupfolder, using the supplied curl example and checking the group-folder-id and acl-list properties. Trace the trashbin response handling in the Group Folders and Nextcloud integration; done means both properties are returned with accurate information.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
api, backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.