Keka extracts an archive into a temporary <name>.kextraction item and
renames it to the final name when extraction finishes. Excluding the
pattern keeps the client from synchronizing the incomplete output while
Keka is still writing it. The file provider extension receives the same
list from the main app, so both sync modes are covered.
Assisted-by: ClaudeCode:claude-opus-5-5
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Julius van der Vaart <[email protected]>
When handling HTTP redirects, slotFinished stripped the Authorization
header for cross-origin targets, but still resent _requestBody to the
new redirectUrl. This allowed an external origin to receive confidential
request payloads or file data.
Refuse cross-origin redirects when a request body is present. Add a
regression test in testDirectUrlCredentials asserting that request
payloads are never dispatched to cross-origin redirect targets.
Assisted-by: Antigravity:Gemini-3.8-Flash
Signed-off-by: Martin Vlach <[email protected]>
This is a followup to #10226
Introduces a proper flag for this read-only remote folder case.
Assisted-by: ClaudeCode:claude-opus-5-5
Signed-off-by: Markus Goetz <[email protected]>
Verify missing and late callbacks, partial results, and preservation of
existing settings when domain discovery or removal fails.
Assisted-by: Codex:GPT-6
Signed-off-by: Claudio Cambra <[email protected]>
Drop metadata_unique_inode when opening journals so existing databases
no longer enforce the reverted inode uniqueness constraint. Reset the
version query before schema updates to release its read lock.
Add regression coverage for existing and absent indexes, metadata
preservation, duplicate and zero inode writes, and repeated reopening.
Assisted-by: Codex:GPT-6
Signed-off-by: Claudio Cambra <[email protected]>
Make the synchronous socket helper const and use a function pointer for its static callbacks. Cover journal-based internal links and invalid paths through the socket command, and align flagged documentation comments with the analyzer.
Co-authored-by: Claudio Cambra <[email protected]>
Signed-off-by: Rello <[email protected]>
Signed-off-by: Claudio Cambra <[email protected]>
Assisted-by: Codex:GPT-5
Clear duplicate and zero inodes before creating the unique inode index,
preserving the remaining metadata and scheduling remote discovery. Store
unknown inodes as NULL for inserts and local metadata updates, and stop
journal initialization when schema migration fails.
Add regression coverage for legacy duplicate inodes and repeated
unknown-inode records.
Assisted-by: Codex:GPT-6
Signed-off-by: Claudio Cambra <[email protected]>
Replace the private-link DAV lookup with account-level URL generation using globalscale.token when present. Use the shared generator for unified sharing, file details, and filesystem actions, and add regression coverage.
Signed-off-by: Rello <[email protected]>
Assisted-by: Codex:GPT-5
Drop the stale record of a symlinked path in both modes and cover the
propagator checks with a test that replaces a folder by a symlink.
Assisted-by: ClaudeCode:claude-opus-5-5
Signed-off-by: Camila Ayres <[email protected]>
Partial discovery skips the local listing, so a local symlink with the name of a
remote folder was not flagged and the client would sync its remote content in the
symlinked folder outside the sync root.
Discovery now checks such paths on disk, drops stale records and reports the symlink as ignored.
A symlinked folder is no longer accepted as the source of a remote move.
Mkdir, download, rename, local remove, folder metadata, removeRecursively,
setModTime and setFolderPermissions also refuse paths that are recognised as symlink.
Assisted-by: ClaudeCode:claude-opus-4-8
Assisted-by: ClaudeCode:claude-opus-5-5
Signed-off-by: Camila Ayres <[email protected]>
The XPC utilities and their tests were converted to ARC while #10981 was
in review, and the pull request was merged without a textual conflict.
Its password deletion code still used manual reference counting, so
fileproviderxpc_mac_utils.mm stopped compiling with -fobjc-arc ("ARC
forbids explicit message send of 'release'", "cast of C pointer type
'void *' to Objective-C pointer type ... requires a bridged cast").
Hand the connections back to ARC the way
FileProviderXPC::disconnectFromFileProviderDomain does, and let ARC
manage the semaphore and the test objects.
Refs #9865
Assisted-by: ClaudeCode:claude-opus-5-5
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]>
Use the Windows Fonts directory for the offscreen font database and enable capturable Qt test output.
Assisted-by: Codex:GPT-6
Signed-off-by: Claudio Cambra <[email protected]>
Derive every FinderSync service NSError domain from APPLICATION_REV_DOMAIN
so branded clients report their configured reverse-domain identifier.
Add a regression target that compiles the real service with a nondefault
branding identifier and checks immediate and queued status/menu failures.
Also assert the configured domain in the existing lifecycle tests.
Assisted-by: Codex:GPT-6
Signed-off-by: Claudio Cambra <[email protected]>
Use a minimum menu width so Qt can retain its calculated layout width when
a style needs more than 320 pixels. Add regression coverage for compact
and wide styles opening in both directions.
Assisted-by: Codex:GPT-6
Signed-off-by: Claudio Cambra <[email protected]>
When a directory change was detected, FolderWatcher::changeDetected()
and appendSubPaths() enumerated everything below the directory and
followed symlinks to directories. A symlink leading back to one of its
own parents made the recursion walk ever longer paths on the main
thread. In the observed case, a flatpak-builder build-dir contained
var/run -> /run, and the document portal mount below /run exposed the
home directory again; the client stopped responding and grew to about
13 GB.
Symlinked directories and junctions are still reported as changed
paths, but no longer enumerated. Junctions are checked with
QFileInfo::isJunction(), because QFileInfo::isSymLink() is documented
for symbolic links, shortcuts and aliases only. On Linux, newly created
or moved-in directory symlinks no longer get inotify watches registered
through them. Symlinks are never synced, so there are no changes below
them to report.
FolderWatcherChangeDetectionTest calls changeDetected() directly
instead of waiting for platform notifications, so it is also built on
Windows, where FolderWatcherTest is disabled. On Linux, the new symlink
tests fail without this change and pass with it. The junction test
passed in the Windows CI.
Related: #6711, #6746
Assisted-by: ClaudeCode:claude-opus-5-5
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: v3DJG6GL <[email protected]>
Ignored files with a reason are listed as sync errors. A sync folder with
thousands of ignored files, for example a build folder excluded with
"choose what to sync", slowed down every sync that reports them:
- addErrorToActivityList() did not check whether the error was already
listed, so later syncs could list the same ignored file again.
- addEntriesToActivityList() rebuilt the tray preview data after every
added entry, which copies and scans the whole list.
- The cleanup at the start of a sync removed outdated errors one by one.
Each removal moved all following entries and rebuilt the previews.
Changes:
- Skip an error that is already listed for the same folder.
- Only rebuild the previews when an added entry can be previewed. Sync
issues never are, and appended rows do not move the previewed ones.
- Add removeActivitiesFromActivityList(). It removes adjacent rows at
once and rebuilds the previews once. The single removal and the
cleanup in User::slotProgressInfo() use it.
Behavior changes:
- A repeated error keeps the time it was first listed.
- Adding a sync issue no longer refreshes the relative times shown in
the tray previews.
- Removing an activity removes all equal entries, not only the first.
ActivityListModelTest covers duplicates, removal and the preview rows.
Two timed tests add and remove 5000 ignored files with a 2 s limit.
Debug build, 5 runs each:
- add: 4.9-5.9 s before, 0.19-0.21 s after
- remove one by one before: 8.0-8.5 s, in one call after: 0.10-0.13 s
The change in User::slotProgressInfo() has no unit test. In a manual run
with 6,466 ignored files, the cleanup took 39.8 s without the batch
removal and 2.3 s with it.
Related: #11047, #10962
Co-authored-by: Camila Ayres <[email protected]>
Assisted-by: ClaudeCode:claude-opus-5-5
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: v3DJG6GL <[email protected]>
Add APPLICATION_SIGNUP_URL and use it when opening Sign up in the browser.
Accept absolute HTTP or HTTPS URLs without credentials, falling back to
the existing Nextcloud sign-up page for empty or invalid settings.
Cover URL validation, compiled branding settings and browser dispatch.
Assisted-by: Codex:GPT-6
Signed-off-by: Claudio Cambra <[email protected]>
Add WIZARD_HIDE_SIGNUP_BUTTON, defaulting to OFF, and expose it through
Theme to control the setup wizard's Sign up button.
Cover the compiled branding property and Sign up visibility on the server
and authentication steps. Verify Self-host and Log in remain available
on the server step.
Assisted-by: Codex:GPT-6
Signed-off-by: Claudio Cambra <[email protected]>
Add WIZARD_HIDE_SELF_HOST_BUTTON, defaulting to OFF, and expose it through
Theme so the account wizard can hide the Self-host button in branded builds.
Cover the branding property and wizard visibility while keeping Sign up and
Log in available.
Assisted-by: Codex:GPT-6
Signed-off-by: Claudio Cambra <[email protected]>
Domain removal asked the extension to delete its stored password through
the connections configureXPC() sets up. Orphaned domains are removed
during startup before that, so their password stayed in the keychain.
Connect to the extension of the domain being removed instead, which
depends neither on configured nor on still valid connections.
Refs #9865
Assisted-by: ClaudeCode:claude-opus-5-5
Signed-off-by: Iva Horn <[email protected]>
The extension cannot run once its domain is removed, so the password it
stored would stay in the keychain. Add a request through which the main
app asks the extension of a domain to delete its stored password, and
send it as the first step of every domain removal. The main app waits at
most one second for the reply and removes the domain in any case.
The request is a new method instead of a changed removeAccountConfig
because an extension still running an older build drops a selector it
does not know, which would also drop the existing sign-out handling.
Refs #9865
Assisted-by: ClaudeCode:claude-opus-5-5
Signed-off-by: Iva Horn <[email protected]>
Enable ARC for Cocoa startup, local network permission probes, FinderSync
services and XPC, the File Provider service, and Sparkle.
Keep application startup in a scoped autorelease pool, balance opaque XPC
references, and detach native delegates before their C++ owners disappear.
Add regression coverage for native object lifetime, queued replies,
cancellation, teardown, and late callbacks.
Assisted-by: Codex:GPT-6
Signed-off-by: Claudio Cambra <[email protected]>
Compile the tests with ARC and adopt retained opaque pointers with bridge
transfers. Check object lifetimes after input owners and autorelease pools
drain, and keep ARC assertions in the implementation files.
Assisted-by: Codex:GPT-6
Signed-off-by: Claudio Cambra <[email protected]>
will ensure teh client has proper tracking of which items are virtual
and which items are hydrated or populated
should avoid teh cleint deciding to populate a folder that just got a
change on server but was never visited by the user
Signed-off-by: Matthieu Gallien <[email protected]>