Skip to content

[stable34] fix(files_trashbin): cleanup trash metadata after failed cross-user moves - #63088

Merged
AndyScherzinger merged 1 commit into
stable34from
backport/63070/stable34
Aug 9, 2026
Merged

[stable34] fix(files_trashbin): cleanup trash metadata after failed cross-user moves#63088
AndyScherzinger merged 1 commit into
stable34from
backport/63070/stable34

Conversation

@backportbot

@backportbot backportbot Bot commented Aug 9, 2026

Copy link
Copy Markdown

Backport of PR #63070

When moving a shared file to the trash fails after its metadata row has been inserted, the failure-cleanup path calls `deleteTrashRow()` with the deleting user.

The row was inserted for the file owner, so this leaves orphaned `files_trash` metadata whenever the owner and deleting user differ.

Doesn't impact success path; just the rollback path.

This change uses `$owner` for the cleanup call, ensuring the inserted metadata row is removed.

Signed-off-by: Josh <josh.t.richards@gmail.com>
@backportbot
backportbot Bot requested a review from a team as a code owner August 9, 2026 09:17
@backportbot backportbot Bot added this to the Nextcloud 34.0.3 milestone Aug 9, 2026
@AndyScherzinger
AndyScherzinger merged commit 7085b1c into stable34 Aug 9, 2026
222 of 229 checks passed
@AndyScherzinger
AndyScherzinger deleted the backport/63070/stable34 branch August 9, 2026 10:07
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.

3 participants