Skip to content

fix: clean up file shares on collaborator removal#3291

Merged
Chartman123 merged 2 commits intomainfrom
fix/cleanup-file-shares-on-removal-public
Apr 14, 2026
Merged

fix: clean up file shares on collaborator removal#3291
Chartman123 merged 2 commits intomainfrom
fix/cleanup-file-shares-on-removal-public

Conversation

@pringelmann
Copy link
Copy Markdown
Collaborator

Deleting a Forms collaborator share previously left the separate Files share for the uploaded response folder in place, so a removed collaborator kept read access to respondent uploads.

@codecov
Copy link
Copy Markdown

codecov bot commented Apr 14, 2026

Codecov Report

❌ Patch coverage is 70.00000% with 6 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
lib/Controller/ShareApiController.php 70.00% 6 Missing ⚠️

📢 Thoughts on this report? Let us know!

@pringelmann
Copy link
Copy Markdown
Collaborator Author

/backport to stable5.2

@backportbot backportbot bot added the backport-request Pending backport by the backport-bot label Apr 14, 2026
-e
Signed-off-by: Peter Ringelmann <peter.ringelmann@nextcloud.com>
@pringelmann pringelmann force-pushed the fix/cleanup-file-shares-on-removal-public branch from d928241 to 2f52dc7 Compare April 14, 2026 08:13
-e
Signed-off-by: Peter Ringelmann <peter.ringelmann@nextcloud.com>
@pringelmann pringelmann force-pushed the fix/cleanup-file-shares-on-removal-public branch from 2f52dc7 to 3ce7be0 Compare April 14, 2026 10:26
@Chartman123 Chartman123 merged commit 9a4b59e into main Apr 14, 2026
58 checks passed
@Chartman123 Chartman123 deleted the fix/cleanup-file-shares-on-removal-public branch April 14, 2026 11:58
@backportbot
Copy link
Copy Markdown

backportbot bot commented Apr 14, 2026

The backport to stable5.2 failed. Please do this backport manually.

# Switch to the target branch and update it
git checkout stable5.2
git pull origin stable5.2

# Create the new backport branch
git checkout -b backport/3291/stable5.2

# Cherry pick the change from the commit sha1 of the change against the default branch
# This might cause conflicts, resolve them
git cherry-pick 050c2b97 3ce7be05

# Push the cherry pick commit to the remote repository and open a pull request
git push origin backport/3291/stable5.2

Error: Failed to cherry pick commits: error: no cherry-pick or revert in progress
fatal: cherry-pick failed


Learn more about backports at https://docs.nextcloud.com/server/stable/go.php?to=developer-backports.

@nextcloud nextcloud deleted a comment from backportbot bot Apr 14, 2026
pringelmann added a commit that referenced this pull request Apr 14, 2026
* fix(shares): clean up file shares on collaborator removal
-e
Signed-off-by: Peter Ringelmann <peter.ringelmann@nextcloud.com>

* refactor(shares): fix TOCTOU in folder lookup
-e
Signed-off-by: Peter Ringelmann <peter.ringelmann@nextcloud.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews backport-request Pending backport by the backport-bot feature: 📊 responses & statistics

Projects

Development

Successfully merging this pull request may close these issues.

2 participants