Skip to content

[stable2] fix(contexts): remove the navigation settings of a deleted receiver - #3340

Merged
blizzz merged 5 commits into
stable2from
backport/3204/stable2
Nov 24, 2026
Merged

blizzz merged 5 commits into
stable2from
backport/3204/stable2

Conversation

@backportbot

@backportbot backportbot Bot commented Nov 23, 2026

Copy link
Copy Markdown

Backport of PR #3204

Deleting a user, group or team removed the shares made to them but left
the application navigation settings of those shares in
tables_contexts_navigation, and deleting a user also left the settings
they made for themselves on shares to others. Both are now removed with
the shares.

Assisted-by: ClaudeCode:claude-opus-5-5
Signed-off-by: Ruben van der Linde <ruben@conduction.nl>
…stant

Assisted-by: ClaudeCode:claude-opus-5-5
Signed-off-by: Ruben van der Linde <ruben@conduction.nl>
Filter on node_type 'context', since only application shares have
navigation rows, and read the ids with fetchAll() so the query also
works on Nextcloud 30 to 32.

Assisted-by: ClaudeCode:claude-opus-5-5
Signed-off-by: Ruben van der Linde <ruben@conduction.nl>
…avigation

Read the application share ids first, delete the shares as before and
remove the navigation rows afterwards in their own guard, so a failing
navigation delete no longer keeps the shares. Read the uid once.

Assisted-by: ClaudeCode:claude-opus-5-5
Signed-off-by: Ruben van der Linde <ruben@conduction.nl>
…ope it to the fixture

Assert that the receiver's shares are deleted and others kept, expect no
warning on the normal path, cover a deleted team and a failing navigation
delete, and read and clean up only the rows the test created.

Assisted-by: ClaudeCode:claude-opus-5-5
Signed-off-by: Ruben van der Linde <ruben@conduction.nl>
@blizzz
blizzz force-pushed the backport/3204/stable2 branch from 62c4960 to afe1bc0 Compare November 24, 2026 11:15
@blizzz
blizzz merged commit dbb7bed into stable2 Nov 24, 2026
70 checks passed
@blizzz
blizzz deleted the backport/3204/stable2 branch November 24, 2026 12:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants