Skip to content

fix(exclude): avoid trying to read patterns from file when reading failed - #10335

Merged
mgallien merged 2 commits into
masterfrom
bugfix/10301/win32-cfapi-syncexclude
Jul 10, 2026
Merged

fix(exclude): avoid trying to read patterns from file when reading failed#10335
mgallien merged 2 commits into
masterfrom
bugfix/10301/win32-cfapi-syncexclude

Conversation

@nilsding

@nilsding nilsding commented Jul 9, 2026

Copy link
Copy Markdown
Member

Resolves

#10301

Summary

The Windows on-demand VFS creates placeholder files while the folders are being navigated to. This worked fine until a folder was opened which contains a folder-specific exclude patterns file: the sync engine would keep trying to read from the placeholder file forever.

--> resolve it by catching read errors in csync_exclude, and mark the exclude pattern file to be downloaded with the next sync while creating placeholders

Checklist

AI (if applicable)

@nilsding

nilsding commented Jul 9, 2026

Copy link
Copy Markdown
Member Author

/backport to stable-34.0 please

@nilsding

nilsding commented Jul 9, 2026

Copy link
Copy Markdown
Member Author

/backport to stable-33.0 please

@nilsding
nilsding force-pushed the bugfix/10301/win32-cfapi-syncexclude branch from 0b16fd6 to bf0ac8d Compare July 10, 2026 05:36
@github-actions

Copy link
Copy Markdown
Contributor

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

Digest: sha256:a967983556195eaf522e13ad194d662079c89a5cc83ed5ab5f09ae99cec615ac

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
C Maintainability Rating on New Code (required ≥ A)
11 New Code Smells (required ≤ 0)

See analysis details on SonarQube Cloud

💡 Need a hand with PR review? Try Gitar by Sonar!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

2 participants