Skip to content

Conversation

@i2h3
Copy link
Collaborator

@i2h3 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.

@i2h3 i2h3 added this to the 4.0.4 milestone Dec 3, 2025
@i2h3 i2h3 self-assigned this Dec 3, 2025
Copilot AI review requested due to automatic review settings December 3, 2025 14:02
@i2h3 i2h3 added the bug label Dec 3, 2025
@github-project-automation github-project-automation bot moved this to 🧭 Planning evaluation (don't pick) in 💻 Desktop Clients team Dec 3, 2025
@i2h3 i2h3 moved this from 🧭 Planning evaluation (don't pick) to 🏗️ In progress in 💻 Desktop Clients team Dec 3, 2025
@i2h3
Copy link
Collaborator Author

i2h3 commented Dec 3, 2025

/backport to stable-4.0

Copilot finished reviewing on behalf of i2h3 December 3, 2025 14:06
Copy link
Contributor

Copilot AI left a 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]>
@mgallien mgallien enabled auto-merge December 3, 2025 16:40
@mgallien mgallien force-pushed the i2h3/fix/9682755-status-reporting-2 branch from 73abde9 to e8bd02e Compare December 3, 2025 16:40
@github-actions
Copy link

github-actions bot commented Dec 3, 2025

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

Digest: sha256:27d4e7628ea0b893c93237debd770cec5609a94c54089de8761beae3671f091a

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

sonarqubecloud bot commented Dec 3, 2025

@mgallien mgallien merged commit ccd8049 into master Dec 3, 2025
22 checks passed
@mgallien mgallien deleted the i2h3/fix/9682755-status-reporting-2 branch December 3, 2025 17:20
@github-project-automation github-project-automation bot moved this from 🏗️ In progress to ☑️ Done in 💻 Desktop Clients team Dec 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: ☑️ Done

Development

Successfully merging this pull request may close these issues.

4 participants