Removing a remote participant does not reach the receiving server
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 38/100
Rechercherichtung
Start by comparing BoardService::deleteAcl() with addAcl() in lib/Service/BoardService.php, since addAcl already sends the update-permissions OCM notification that the removal path lacks. Then read DeckFederationProvider::notificationReceived() and ExternalBoardService on the receiving side, where 403/404 responses currently return empty data. Done means the receiver drops the board after revocation and revoked requests raise an error; the fix spans both servers, so check with maintainers on the approach first.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Describe the bug
When the owner removes a federated participant from a board, the receiving server is not notified. The owner correctly refuses further requests (403), so no data is exposed, but the receiver keeps the board in its list:
- opening the board returns a 500,
- listing its stacks returns 200 with an empty list,
- creating a card returns 200 with empty data, while nothing is created.
BoardService::deleteAcl() sends no OCM notification for PERMISSION_TYPE_REMOTE:
https://github.com/nextcloud/deck/blob/bf65da22e13a366c70c72391beaee00ed2152810/lib/Service/BoardService.php#L579
To Reproduce
- On instance A, share a board with a user on instance B. The board appears for that user.
- On instance A, remove that user from the board's sharing.
- On instance B, the board is still listed for the user.
Expected behavior
The receiver removes the board when the owner revokes the share, and requests to a revoked board return an error instead of an empty success.
Suggested fix
Not tested; a direction based on the current code.
- Owner: in
BoardService::deleteAcl(), when the ACL isPERMISSION_TYPE_REMOTE, send an OCM notification to the participant's server before deleting the ACL, the same wayaddAcl()sendsupdate-permissions(payload withsharedSecret= the ACL token, provider ID = board ID). Federated file sharing usesSHARE_UNSHAREDfor this. - Receiver: handle that notification in
DeckFederationProvider::notificationReceived(). Find the local board withBoardMapper::findByExternalId()and a matchingshareToken, as theupdate-permissionscase already does, then delete the participant's ACL, the board once no local participant is left, and the "remote board shared" notification. - Receiver: when the owner answers 403 or 404 for an external board,
ExternalBoardServiceshould raise an error (for exampleNoPermissionException) instead of returning empty data. That also covers shares revoked before this change.
This may fit into the federated sharing work in #8114 / #8184.
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
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
Maintainer antworten meist innerhalb von 1 Tag
-
clawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:crash-loop issue-rating: 🦞 diamond lobster maturity:stable no-stale P2
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 85/100
openclaw/openclaw#211917 · 1 Kommentar · 1 Reaktion ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
michael-denyer/pstack-claude#644 ·
Maintainer antworten meist innerhalb von 1 Tag
-
area-integrations
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
Maintainer antworten meist innerhalb von 1 Tag
-
good first issue help wanted
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100