Incoming federated board stays in the database after the receiving user is deleted
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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.
- 主要言語
- JavaScript
- スター
- 1.4k
- フォーク
- 380
- 平均マージ
- 1日 17時間
- マージ済み PR(30日)
- 72
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
nextcloud/deck のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
2 small URL Bugsオープン1. to develop bug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
nextcloud/deck#8834 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Updating a card without `done` clears its done state対応中かも @whoalin1 が 5 日前に担当しました。 オープン0. Needs triage bug
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信
-
Updating a card on an incoming federated board without `done` returns 500対応中かも @AlirezaAghaee1996 が 5 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
似ている issue
-
area-integrations
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
Trac-Systems/main_settlement_bus#1071 ·
メンテナーはふだん 1 日以内に返信
-
Bug kind/bug pulumi/pulumi R1 S1
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
Document that Search Attributes on Standalone Activity start are not billed as additional Actionsオープン
難易度 1/5 1〜3時間 初心者へのやさしさ 90/100
temporalio/documentation#5883 ·
メンテナーはふだん 1 日以内に返信
-
good first issue help wanted
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
Stanley03-arch/Rabbit#15 ·
メンテナーはふだん 1 日以内に返信