Skip to content

Conversation

@i2h3
Copy link
Collaborator

@i2h3 i2h3 commented Oct 23, 2025

No description provided.

i2h3 added 2 commits October 23, 2025 14:48
Signed-off-by: Iva Horn <iva.horn@nextcloud.com>
Signed-off-by: Iva Horn <iva.horn@nextcloud.com>
@i2h3 i2h3 added this to the 4.0.1 milestone Oct 23, 2025
@i2h3 i2h3 self-assigned this Oct 23, 2025
@i2h3 i2h3 requested a review from Copilot October 23, 2025 12:52
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 fixes a crash that occurs when deactivating the File Provider for accounts with UUID names. The fix removes unnecessary assertions and improves code clarity around domain ID and account ID handling.

Key changes:

  • Renamed configuredDomainIds() to getAccountIdsOfFoundFileProviderDomains() and updated related variable names for clarity
  • Removed accountIdFromDomainId() conversion call in cleanup logic, treating domain IDs as account IDs directly
  • Removed unnecessary account null assertions that could cause crashes

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/gui/macOS/fileproviderdomainmanager_mac.mm Renamed method and variables for clarity, simplified domain cleanup logic by treating domain IDs as account IDs, and removed assertions that could cause crashes
shell_integration/MacOSX/NextcloudIntegration/NextcloudIntegration.xcodeproj/project.pbxproj Updated Xcode project configuration with new object version and file system synchronized root group

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

@i2h3 i2h3 enabled auto-merge October 23, 2025 12:54
@i2h3
Copy link
Collaborator Author

i2h3 commented Oct 23, 2025

/backport to stable-4.0

@github-actions
Copy link

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

Digest: sha256:665b81e3717a084a486859a4589f2c2f3582dd123d6b5d2a17d0838e99499961

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.

@i2h3 i2h3 merged commit aecfdf4 into master Oct 23, 2025
20 checks passed
@i2h3 i2h3 deleted the fix/uuid-account-crash branch October 23, 2025 13:35
@sonarqubecloud
Copy link

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants