-
Notifications
You must be signed in to change notification settings - Fork 890
fix(file-provider): Sync state for excluded lock files. #9173
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
i2h3
commented
Dec 3, 2025
- Added debug logging to file provider extension about its sync actions.
- Added debug logging to file provider extension about its sync state reported to the main app through the socket.
- Added debug logging to the main app about the sync state received from a file provider extension through the socket.
- Updated sync action management to not consider the exclusion of a lock file as an error.
|
/backport to stable-4.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR enhances the file provider extension's observability and fixes a sync state reporting issue related to lock files. The changes add debug logging throughout the sync action lifecycle and implement special handling for lock file exclusion errors to prevent misleading sync status reports.
Key Changes:
- Added comprehensive debug logging for sync action state transitions (insert, remove, error) and sync state reporting
- Implemented macOS 13.0+ conditional logic to distinguish lock file exclusion from actual synchronization errors
- Improved error handling with defensive nil checks in sync state reporting
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| src/gui/macOS/fileprovidersocketcontroller.cpp | Added debug logging when receiving sync state changes from file provider extension |
| shell_integration/MacOSX/NextcloudIntegration/FileProviderExt/FileProviderExtension.swift | Added debug logging for sync action lifecycle methods; implemented special handling for lock file exclusion errors to avoid reporting them as sync failures |
| shell_integration/MacOSX/NextcloudIntegration/FileProviderExt/FileProviderExtension+ClientInterface.swift | Enhanced sync state reporting with additional debug logging and improved error handling with explicit nil checks |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Added debug logging to file provider extension about its sync actions. - Added debug logging to file provider extension about its sync state reported to the main app through the socket. - Added debug logging to the main app about the sync state received from a file provider extension through the socket. - Updated sync action management to not consider the exclusion of a lock file as an error. Signed-off-by: Iva Horn <[email protected]>
73abde9 to
e8bd02e
Compare
|
Artifact containing the AppImage: nextcloud-appimage-pr-9173.zip Digest: 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. |
|


