Incoming federated board stays in the database after the receiving user is deleted
Les mainteneurs répondent en général sous 1 jour
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Accessibilité débutants
- 55/100
Piste de recherche
Start with ParticipantCleanupListener, which handles UserDeletedEvent and calls cleanupByParticipant after deleting the user's owned boards. Incoming boards (rows in deck_boards with external_id set) are owned by the remote user and are skipped there. Check how ACL rows for the deleted user are removed. Done means that after the user is deleted, incoming boards with no remaining ACL are also removed, and this is covered by a test. The optional OCM owner notification is a separate step and needs maintainer input.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Describe the bug
When a user who received a federated board is deleted, their ACL is removed, but the incoming board itself (a deck_boards row with external_id set and the remote owner) stays. Nobody can see it, and it is never cleaned up.
To Reproduce
- Share a board from instance A with a user on instance B.
- Delete that user on instance B (
occ user:delete). deck_boardson instance B still contains the board withexternal_idset and no ACL.
Expected behavior
Incoming boards without any remaining local participant are removed.
Suggested fix
Not tested; a direction based on the current code.
ParticipantCleanupListener handles UserDeletedEvent: it deletes the boards the user owns and then calls cleanupByParticipant(Acl::PERMISSION_TYPE_USER, $userId). Incoming boards are owned by the remote user, so they are skipped. After the ACL cleanup, also delete incoming boards (external_id set) that no longer have an ACL. Optionally notify the owner, so the owner's remote participant is removed as well; that would use the same kind of OCM notification as in #8789 (revoking a share).
Server details
Two instances, both Docker, MariaDB 11.8 / MySQL, PHP 8.5.13:
- Instance A: Nextcloud 35.0.3, Deck 1.19.2
- Instance B: Nextcloud 34.0.6, Deck 1.18.7
The code paths are unchanged on main (bf65da22e).
This report was drafted with AI assistance (Claude Code) and reproduced on the two instances above.
- Langage dominant
- JavaScript
- Étoiles
- 1.4k
- Forks
- 380
- Merge moyen
- 1 j 17 h
- PR mergées (30 j)
- 72
Préparer son environnement
Lance le conteneur de développement du projet dans votre navigateur, avec votre propre compte GitHub.
- Aucun Dockerfile ni fichier Docker Compose
- Propose un modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de nextcloud/deck
-
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
Les mainteneurs répondent en général sous 1 jour
-
2 small URL BugsOuverte1. to develop bug
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
nextcloud/deck#8834 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
Updating a card without `done` clears its done statePeut-être pris @whoalin1 l’a pris il y a 5 jours. Ouverte0. Needs triage bug
Difficulté 2/5 1-3 heures Accessibilité débutants 62/100
Les mainteneurs répondent en général sous 1 jour
-
Updating a card on an incoming federated board without `done` returns 500Peut-être pris @AlirezaAghaee1996 l’a pris il y a 5 jours. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de nextcloud/deck
Issues similaires
-
area-integrations
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
Trac-Systems/main_settlement_bus#1071 ·
Les mainteneurs répondent en général sous 1 jour
-
Bug kind/bug pulumi/pulumi R1 S1
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
Les mainteneurs répondent en général sous 1 jour
-
Document that Search Attributes on Standalone Activity start are not billed as additional ActionsOuverte
Difficulté 1/5 1-3 heures Accessibilité débutants 90/100
temporalio/documentation#5883 ·
Les mainteneurs répondent en général sous 1 jour
-
good first issue help wanted
Difficulté 1/5 Moins d'une heure Accessibilité débutants 88/100
Stanley03-arch/Rabbit#15 ·
Les mainteneurs répondent en général sous 1 jour