Skip to content

Conversation

@i2h3
Copy link
Collaborator

@i2h3 i2h3 commented Oct 17, 2025

For the special use case of the sever not supporting locks.

…g the required capability.

Signed-off-by: Iva Horn <iva.horn@nextcloud.com>
@i2h3 i2h3 requested review from Copilot and nilsding October 17, 2025 07:44
@i2h3 i2h3 self-assigned this Oct 17, 2025
@i2h3 i2h3 added the bug Something isn't working label Oct 17, 2025
@github-project-automation github-project-automation bot moved this to 🧭 Planning evaluation (don't pick) in 💻 Desktop Clients team Oct 17, 2025
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 updates the error handling for lock files when server-side locking capabilities are unavailable. Instead of returning a generic synchronization error, the code now uses the more appropriate excludedFromSync error on macOS 13.0+, while maintaining backward compatibility with earlier versions. The change includes improved logging to clarify why lock files are being excluded.

  • Returns NSFileProviderError(.excludedFromSync) on macOS 13.0+ when locking capability is missing
  • Maintains backward compatibility by using cannotSynchronize error on earlier macOS versions
  • Adds debug logging to explain why lock files are excluded from synchronization

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@i2h3 i2h3 enabled auto-merge (rebase) October 17, 2025 07:45
@i2h3 i2h3 merged commit fe662ba into main Oct 17, 2025
2 of 3 checks passed
@i2h3 i2h3 deleted the fix/exclude-lock-files branch October 17, 2025 07:45
@github-project-automation github-project-automation bot moved this from 🧭 Planning evaluation (don't pick) to ☑️ Done in 💻 Desktop Clients team Oct 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants