The tag in every sync anchor named only the extension version and the
store version, so after the open set a corrupt database file aside and
replaced it, after a downgrade reset, or after the file was removed by
hand, every anchor the framework had kept for the domain still
validated. The working set then read an empty materialized set,
reported nothing and advanced the anchor, and the containers were never
repopulated from the server.
Every database file now carries a random identity in a single-row
`storeIdentity` table, minted the first time the file is opened and
read once per `FilesDatabaseManager`. The identity is part of the
anchor tag, so an anchor from another file is answered with
`syncAnchorExpired` and the framework re-enumerates the container. That
is the behaviour the `reimportItems(below:)` documentation asks of a
provider whose item identifiers stay stable across a loss of its sync
state, which ours do: they are the server's `ocId` values. The table is
part of the initial schema: no build with the SQLite store has shipped,
so there is nothing to migrate.
`StoreReplacementAnchorTests` fails without the identity in the tag:
the anchor of the earlier store was accepted and the enumeration
finished on the empty replacement.
Not verified on a real domain: how the framework treats materialized
placeholders after the full re-enumeration of a replaced store.
Assisted-by: ClaudeCode:claude-fable-5-1
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Signed-off-by: Iva Horn <[email protected]>
Documents the storage choices, the store version and the import from
Realm in a DocC article, and updates the comments and design notes which
still described the Realm database. The debug archive now collects the
SQLite database with its write-ahead log, and any Realm file which could
not be imported. The workspace manifest pins GRDB.
Part of #9046.
Assisted-by: ClaudeCode:claude-fable-5-1
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Signed-off-by: Iva Horn <[email protected]>
- A device default no longer unlocks the server URL in a build that sets
APPLICATION_SERVER_URL together with APPLICATION_SERVER_URL_ENFORCE.
Standard builds enable APPLICATION_SERVER_URL_ENFORCE without a URL, so
a device default stays editable there.
- Say "Invalid path" when --overridelocaldir is given without a path.
Assisted-by: ClaudeCode:claude-opus-5-5
Signed-off-by: Nathan van Dael <[email protected]>
- Return whether setOverrideServerUrl() and setOverrideLocalDir() wrote
the value, and show a hint when a policy blocks --overrideserverurl or
--overridelocaldir.
- Reject a --overridelocaldir path that is not absolute while parsing the
command line, using the schema validator.
- Add ConfigFile::isOverrideServerUrlLocked(), shared by the wizard and
the nc:// URI scheme handler, so only a policy or command line value
locks the server URL and restricts login links. Builds enable
APPLICATION_SERVER_URL_ENFORCE by default, so the wizard now clears the
lock for a device default.
- Apply an overrideLocalDir from device default or policy only to the
first account, in the wizard and for account setup from the command
line. A command line value still applies to the next account. Skip the
sync options step only for a locked folder.
- Update the docs and add tests.
Assisted-by: ClaudeCode:claude-opus-5-5
Signed-off-by: Nathan van Dael <[email protected]>
skipUpdateCheck has no UI control and no setter with callers, so a server
default could not be overridden by the user and acted as enforcement,
which the update key policy forbids. Remove it from the server allow list
and the documentation, so the server can neither default nor enforce it.
Assisted-by: Claude Code:claude-opus-4-8
Signed-off-by: Camila Ayres <[email protected]>
- Show the managed label in the general settings, and refuse to enable the mode
in the controller as a backstop.
- Load server capabilities in the wizard before the sync mode selection.
- Fetch the capabilities and apply them to the account before choosing the
sync mode, and fall back to the previous behavior if the fetch fails.
- Greys out enforced keys in the UI.
- The wizard testinstalls fake device sources, so it no longer reads
the managed preferences of the machine running it.
- Keep file provider off while virtual files are enforced off, so the account
stays on classic until the user turns it on.
- Update documentation following the latest fixes.
Assisted-by: Claude Code:claude-opus-4-8
Signed-off-by: Camila Ayres <[email protected]>
- Server defaults no longer lose to values the client wrote by itself.
- Migration copies only keys the legacy config actually holds, the advanced
panel and the wizard write only what the user changed.
- Capabilities that loaded count even for an account without a
subscription.
- Server settings are sanitized before they are cached.
- The enforced label is per group.
- Documents the macOS domain, that only forced values count.
- Removes the dead getPolicySetting, resolveAll, present and SettingScope,
names the source priorities in one header.
- Tests install fake device sources.
- Trim the getConfig doc comment
Assisted-by: Claude Code:claude-opus-4-8
Signed-off-by: Camila Ayres <[email protected]>
A policy cannot enforce a setting the client did not declare.
Update the documentation with the new default.
Assisted-by: Claude Code:claude-opus-4-8
Signed-off-by: Camila Ayres <[email protected]>
Add instructions to doc/macOS-development.md on how to retrieve the Personal Team ID via Xcode and Keychain Access.
Signed-off-by: Jan Schneider <[email protected]>
Signed-off-by: JanSndr <[email protected]>
- Derived data directory ".xcode" for Xcode workspace in project root.
- Mac crafter build directory ".mac-crafter" in project root.
- Added all Swift packages and Xcode projects to workspace.
- Added some important top-level files and other directories.
- Removed obsolete Xcode workspace in shell integration directory.
- Removed obsolete OwnCloudFinderSync folder.
- Updated AGENTS.md.
- Updated README.md.
- Renamed NextcloudDev scheme to Nextcloud Developer Client.
- Fixed Xcode not being abled to resolve breakpoints because the dSYM files are in a dot-directory which is not indexed by Spotlight. mac-crafter now copies the debug symbols manually into the app bundle so they are found.
Signed-off-by: Iva Horn <[email protected]>
we cannot use doc/images/building folder name due to some gitignore
rules
so let's rename it to doc/images/dev
Signed-off-by: Matthieu Gallien <[email protected]>