nextcloud / nextcloud/server

[Bug]: Federated group share is not removed when deleted from remote

Open
#40,542 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

0. Needs triage 27-feedback bug feature: federation feature: sharing
Dominant language
PHP
Stars
36.9k
Forks
5.2k
Avg merge
2d 3h
Merged PRs (30d)
713

Description

⚠️ This issue respects the following points: ⚠️
Bug description

With federated group shares (so shares not shared with a user, but with a whole group), when the remote share no longer exists it's not automatically deleted from the target server.

That leads to the share being recreated for every user that's in the group on every start of the files app, showing a request "Do you want to add the remote share" on every reload.

Steps to reproduce
  1. Share a folder from server A via federation with a group on server B
  2. Delete the shared folder from server A
  3. On the next reload, server B will try to recreate the share for all users of the group, because the actual group share is not removed.
Expected behavior

Server B also removes the entry for the group share, not just the entries for each user share.

Installation method

None

Nextcloud Server version

27

Operating system

None

PHP engine version

None

Web server

None

Database engine version

None

Is this bug present after an update or on a fresh install?

None

Are you using the Nextcloud Server Encryption module?

None

What user-backends are you using?
  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other
Configuration report

No response

List of activated Apps

No response

Nextcloud Signing status

No response

Nextcloud Logs

No response

Additional info

No response

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 tracing federated group-share handling in the files app, focusing on cleanup when a remote share is deleted. Reproduce the three steps with a group share and inspect the behavior on reload. Done means the group-share entry is removed on the target server along with its per-user shares, so the share is not recreated or requested again.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.