nextcloud / nextcloud/groupfolders

Shares inaccessible after removing user from group folder

Open
#2,421 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

1. to develop bug feature: sharing
Dominant language
PHP
Stars
343
Forks
106
Avg merge
2d 3h
Merged PRs (30d)
34

Description

steps to reproduce:

share a file with user1 (share_with) as user2 (uid_initiator) owned by user3 (uid_owner)
create group1
add user2 and user3 as members to group1
create groupfolder for group1
as user3, move the file into the new groupfolder
the share still has user1 as share_with, user2 as uid_initiator and user3 as uid_owner and is accessible
remove user3 from group1

🛑 the shared file is still shown but user1 cannot access the file anymore

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 listed sharing, group-folder, and membership-removal steps in a local Nextcloud groupfolders setup, then trace the group-folder permission handling involved in access checks. Done means the reported shared file remains accessible to user1 after user3 is removed from group1, with regression coverage for this sequence.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
authorization, backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.