Skip to content

fix(discovery): move file lock state off the GUI thread. - #10500

Merged
nilsding merged 2 commits into
masterfrom
bugfix/10464/isFileLocked
Jul 31, 2026
Merged

fix(discovery): move file lock state off the GUI thread.#10500
nilsding merged 2 commits into
masterfrom
bugfix/10464/isFileLocked

Conversation

@camilasan

@camilasan camilasan commented Jul 30, 2026

Copy link
Copy Markdown
Member

Resolves

#10464

Summary

isFileLocked opened files synchronously on the GUI thread during discovery. A blocking open froze the UI and, through the shell extension, Explorer too. Compute the lock state on the local listing worker and carry it in LocalInfo, so handleExcluded reads a precomputed flag. Skip symlinks, virtual placeholders and directories.

Checklist

AI (if applicable)

@camilasan camilasan added this to the 34.0.1 milestone Jul 30, 2026
@camilasan

Copy link
Copy Markdown
Member Author

/backport to stable-34.0

@camilasan
camilasan force-pushed the bugfix/10464/isFileLocked branch 2 times, most recently from 8661b79 to 8d09cf7 Compare July 30, 2026 22:01
@camilasan camilasan changed the title fix(discovery): probe file lock state off the GUI thread fix(discovery): move file lock state off the GUI thread. Jul 30, 2026
@camilasan camilasan linked an issue Jul 30, 2026 that may be closed by this pull request
8 tasks
Comment thread src/libsync/discoveryphase.cpp Outdated
Comment thread src/libsync/discoveryphase.h Outdated
Fix for #10464.

isFileLocked opened files synchronously on the GUI thread during
discovery. A blocking open froze the UI and, through the shell
extension, Explorer too. Compute the lock state on the local
listing worker and carry it in LocalInfo, so handleExcluded
reads a precomputed flag. Skip symlinks, virtual placeholders
and directories.

Assisted-by: Claude Code:claude-opus-4-8
Signed-off-by: Camila Ayres <[email protected]>
@camilasan
camilasan force-pushed the bugfix/10464/isFileLocked branch from ff09903 to 00e9972 Compare July 31, 2026 11:37
Comment thread src/libsync/discoveryphase.h Outdated
@camilasan
camilasan force-pushed the bugfix/10464/isFileLocked branch from 00e9972 to c163e46 Compare July 31, 2026 12:02
@github-actions

Copy link
Copy Markdown
Contributor

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

Digest: sha256:5f655abee56be13c559a3331ac8419927047fc8587eccb4706c85a993fa3dd60

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.

@nilsding
nilsding enabled auto-merge July 31, 2026 12:23
@sonarqubecloud

Copy link
Copy Markdown

@nilsding
nilsding merged commit e9fff81 into master Jul 31, 2026
23 of 24 checks passed
@nilsding
nilsding deleted the bugfix/10464/isFileLocked branch July 31, 2026 13:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

34.0.0 hangs on Windows

3 participants