Skip to content

fix: Normalisation of Windows paths during journal clean-up after recursive deletion - #10692

Open
claucambra wants to merge 3 commits into
masterfrom
work/normalisation-callback
Open

fix: Normalisation of Windows paths during journal clean-up after recursive deletion#10692
claucambra wants to merge 3 commits into
masterfrom
work/normalisation-callback

Conversation

@claucambra

Copy link
Copy Markdown
Collaborator

Summary

On Windows, recursive deletion callbacks used absolute \-separated paths, while journal entries use relative /-separated paths. The old prefix comparison therefore failed. Successfully deleted items could remain in the journal and later be misinterpreted as user deletions, causing unintended remote deletion.

This fix normalises callback paths with Qt, converts them to validated journal-relative paths before cleanup, and uses component-aware directory matching.

Checklist

AI (if applicable)

Signed-off-by: Claudio Cambra <developer@claudiocambra.com>
…lback for use in journal cleanup

Signed-off-by: Claudio Cambra <developer@claudiocambra.com>
@claucambra claucambra added this to the 34.0.4 milestone Aug 29, 2026
@claucambra claucambra self-assigned this Aug 29, 2026
@claucambra

Copy link
Copy Markdown
Collaborator Author

/backport to stable-34.0 please

Signed-off-by: Claudio Cambra <developer@claudiocambra.com>
@claucambra
claucambra force-pushed the work/normalisation-callback branch from 2f761ac to 69233b0 Compare August 29, 2026 06:32
@github-actions

Copy link
Copy Markdown
Contributor

Artifact containing the AppImage: nextcloud-appimage-pr-10692.zip

Digest: sha256:a74f0feb04855eab5f17e2157bbc587dc21884d8b3e851dacebb88cc2aba8ebd

To test this change/fix you can download the above artifact file, unzip it, and run it.

Please make sure to quit your existing Nextcloud app and backup your data.

@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
65.4% Coverage on New Code (required ≥ 80%)
1 New Code Smells (required ≤ 0)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

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.

1 participant