Incoming federated board stays in the database after the receiving user is deleted
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Anfängerfreundlichkeit
- 55/100
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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.
- Vorherrschende Sprache
- JavaScript
- Sterne
- 1.4k
- Forks
- 380
- Ø Merge
- 1 T. 17 Std.
- Gemergte PRs (30 T.)
- 72
Entwicklungsumgebung
Startet den Dev-Container des Projekts im Browser, mit Ihrem eigenen GitHub-Konto.
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus nextcloud/deck
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
Maintainer antworten meist innerhalb von 1 Tag
-
2 small URL BugsOffen1. to develop bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
nextcloud/deck#8834 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
Updating a card without `done` clears its done stateEvtl. vergeben @whoalin1 hat das vor 5 Tagen übernommen. Offen0. Needs triage bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
Maintainer antworten meist innerhalb von 1 Tag
-
Updating a card on an incoming federated board without `done` returns 500Evtl. vergeben @AlirezaAghaee1996 hat das vor 5 Tagen übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
Maintainer antworten meist innerhalb von 1 Tag
Ähnliche Issues
-
area-integrations
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
Trac-Systems/main_settlement_bus#1071 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Bug kind/bug pulumi/pulumi R1 S1
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
Maintainer antworten meist innerhalb von 1 Tag
-
Document that Search Attributes on Standalone Activity start are not billed as additional ActionsOffen
Schwierigkeit 1/5 1-3 Stunden Anfängerfreundlichkeit 90/100
temporalio/documentation#5883 ·
Maintainer antworten meist innerhalb von 1 Tag
-
good first issue help wanted
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 88/100
Stanley03-arch/Rabbit#15 ·
Maintainer antworten meist innerhalb von 1 Tag