nextcloud-desktop.git
2 years agoavoid deadlock: cancel hydration requests coming from itself
Matthieu Gallien [Mon, 1 Jul 2024 14:10:02 +0000 (16:10 +0200)]
avoid deadlock: cancel hydration requests coming from itself

our current infrastructure will cause a deadlock for any hydration
requests coming from desktop files client itself

the main thread is responsible for executing the hydration request but
if the same thread is already blocked waiting for the hydration to
happen, both (open system call and hydration request handling) process
will never be completed and wait for each over in a stuck cycle

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2 years agoMerge pull request #6865 from nextcloud/backport/6864/stable-3.13
Matthieu Gallien [Mon, 1 Jul 2024 13:50:53 +0000 (15:50 +0200)]
Merge pull request #6865 from nextcloud/backport/6864/stable-3.13

[stable-3.13] avoid logs too verbose and with binary data

2 years agoavoid logs too verbose and with binary data
Matthieu Gallien [Mon, 1 Jul 2024 13:40:24 +0000 (15:40 +0200)]
avoid logs too verbose and with binary data

with those logs, hydrating is causing too much log to be written and
after some time (with big fixles), hydration is failing

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2 years agoprepare for 3.13.1 release
Matthieu Gallien [Fri, 28 Jun 2024 16:43:09 +0000 (18:43 +0200)]
prepare for 3.13.1 release

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2 years agoMerge pull request #6858 from nextcloud/backport/6802/stable-3.13
Matthieu Gallien [Fri, 28 Jun 2024 16:38:14 +0000 (18:38 +0200)]
Merge pull request #6858 from nextcloud/backport/6802/stable-3.13

[stable-3.13] Fix sharePath for virtual paths using suffix vfs mode

2 years agoFix sharePath for virtual paths using suffix vfs mode
Claudio Cambra [Fri, 7 Jun 2024 16:10:15 +0000 (00:10 +0800)]
Fix sharePath for virtual paths using suffix vfs mode

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2 years agoMerge pull request #6857 from nextcloud/backport/6773/stable-3.13
Matthieu Gallien [Fri, 28 Jun 2024 16:35:01 +0000 (18:35 +0200)]
Merge pull request #6857 from nextcloud/backport/6773/stable-3.13

[stable-3.13] Bugfix nextcloudcmd when syncing results in deleting all files

2 years agoAdd tests to remove all files when sycing with or without nextcloudcmd.
Camila Ayres [Tue, 25 Jun 2024 20:12:14 +0000 (22:12 +0200)]
Add tests to remove all files when sycing with or without nextcloudcmd.

Signed-off-by: Camila Ayres <hello@camilasan.com>
2 years agoAdd sync option for nextcloudcmd.
Camila Ayres [Tue, 25 Jun 2024 18:39:09 +0000 (20:39 +0200)]
Add sync option for nextcloudcmd.

Signed-off-by: Camila Ayres <hello@camilasan.com>
2 years agoUse readable variable names.
Camila Ayres [Tue, 4 Jun 2024 18:40:44 +0000 (20:40 +0200)]
Use readable variable names.

Signed-off-by: Camila Ayres <hello@camilasan.com>
2 years agoMake warning text before deleting all files more clear and concise.
Camila Ayres [Tue, 4 Jun 2024 18:33:47 +0000 (20:33 +0200)]
Make warning text before deleting all files more clear and concise.

Signed-off-by: Camila Ayres <hello@camilasan.com>
2 years agoFix #3144: check for promptDeleteAllFiles config setting before emitting signal to...
Camila Ayres [Tue, 4 Jun 2024 18:30:32 +0000 (20:30 +0200)]
Fix #3144: check for promptDeleteAllFiles config setting before emitting signal to display warning.

The signal is not connected to any slot when running nextcloudcmd.
The callback to finish the sync was never being called because the check for the config was done in the slot,
which was never called.

Signed-off-by: Camila Ayres <hello@camilasan.com>
2 years agoMerge pull request #6856 from nextcloud/backport/6821/stable-3.13
Matthieu Gallien [Fri, 28 Jun 2024 16:32:54 +0000 (18:32 +0200)]
Merge pull request #6856 from nextcloud/backport/6821/stable-3.13

[stable-3.13] Allow deletion of virtual suffix placeholder files

2 years agoProperly reset fakefolder test state post-placeholder file delete in testsyncvirtualfiles
Claudio Cambra [Wed, 26 Jun 2024 07:07:50 +0000 (15:07 +0800)]
Properly reset fakefolder test state post-placeholder file delete in testsyncvirtualfiles

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2 years agoEnsure stripping of suffix vfs placeholder file's suffix when issuing delete command...
Claudio Cambra [Wed, 26 Jun 2024 07:07:23 +0000 (15:07 +0800)]
Ensure stripping of suffix vfs placeholder file's suffix when issuing delete command to server

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2 years agoAmend behaviour of suffix virtual files test to reflect new expected behaviour
Claudio Cambra [Tue, 25 Jun 2024 15:26:15 +0000 (23:26 +0800)]
Amend behaviour of suffix virtual files test to reflect new expected behaviour

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2 years agoAllow deletion of virtual suffix placeholder files
Claudio Cambra [Mon, 17 Jun 2024 15:40:28 +0000 (23:40 +0800)]
Allow deletion of virtual suffix placeholder files

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2 years agoMerge pull request #6853 from nextcloud/backport/6839/stable-3.13
Claudio Cambra [Fri, 28 Jun 2024 09:42:29 +0000 (17:42 +0800)]
Merge pull request #6853 from nextcloud/backport/6839/stable-3.13

[stable-3.13] Bugfix/rw folders broken

2 years agoDo not wrap macOS ifdefs in filesystem when parent function already wrapped in ifdef
Claudio Cambra [Wed, 26 Jun 2024 09:04:17 +0000 (17:04 +0800)]
Do not wrap macOS ifdefs in filesystem when parent function already wrapped in ifdef

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2 years agoDo not re-generate standard string path twice
Claudio Cambra [Wed, 26 Jun 2024 09:03:03 +0000 (17:03 +0800)]
Do not re-generate standard string path twice

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2 years agoEnsure we are re-adding same permissions as removed
Claudio Cambra [Wed, 26 Jun 2024 08:59:47 +0000 (16:59 +0800)]
Ensure we are re-adding same permissions as removed

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2 years agoMerge pull request #6850 from nextcloud/backport/6846/stable-3.13
Matthieu Gallien [Fri, 28 Jun 2024 08:29:19 +0000 (10:29 +0200)]
Merge pull request #6850 from nextcloud/backport/6846/stable-3.13

[stable-3.13] Add cfapi debug logs

2 years agoPrint desktop client process id.
Camila Ayres [Wed, 19 Jun 2024 14:27:06 +0000 (16:27 +0200)]
Print desktop client process id.

Signed-off-by: Camila Ayres <hello@camilasan.com>
2 years agoAdd new cfapi callbacks for logging.
Camila Ayres [Thu, 13 Jun 2024 17:57:27 +0000 (19:57 +0200)]
Add new cfapi callbacks for logging.

Signed-off-by: Camila Ayres <hello@camilasan.com>
2 years agoAdd more logs to track file hydration.
Camila Ayres [Wed, 12 Jun 2024 13:32:01 +0000 (15:32 +0200)]
Add more logs to track file hydration.

Signed-off-by: Camila Ayres <hello@camilasan.com>
2 years agoMerge pull request #6842 from nextcloud/backport/6841/stable-3.13
Matthieu Gallien [Wed, 26 Jun 2024 12:50:07 +0000 (14:50 +0200)]
Merge pull request #6842 from nextcloud/backport/6841/stable-3.13

[stable-3.13] Bugfix/update encryption state when server change

2 years agoignore encrypted items during discovery when encryption is disabled
Matthieu Gallien [Tue, 21 May 2024 16:06:37 +0000 (18:06 +0200)]
ignore encrypted items during discovery when encryption is disabled

when we know a folder should be encrypted but encryption client side app
is disabled, ignore any items in the encrypted folders

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2 years agodo not allow to select e2ee folders if the server support is missing
Matthieu Gallien [Wed, 15 Mar 2023 14:17:48 +0000 (15:17 +0100)]
do not allow to select e2ee folders if the server support is missing

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2 years agomaintain e2ee state even if the server does not support e2ee
Matthieu Gallien [Wed, 15 Mar 2023 14:16:18 +0000 (15:16 +0100)]
maintain e2ee state even if the server does not support e2ee

might be that the server previously supported e2ee and e2ee folders
exist

so we have to fetch the info to properly handle it on client

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2 years agoMerge pull request #6838 from nextcloud/backport/6833/stable-3.13
Claudio Cambra [Wed, 26 Jun 2024 08:29:42 +0000 (16:29 +0800)]
Merge pull request #6838 from nextcloud/backport/6833/stable-3.13

[stable-3.13] Fix crash when updating enabled File Provider domains (macOS VFS)

2 years agoRemove no longer existing account id from configured vfs accounts list
Claudio Cambra [Tue, 25 Jun 2024 10:54:15 +0000 (18:54 +0800)]
Remove no longer existing account id from configured vfs accounts list

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2 years agoPrevent crash when updating file provider domains if the account for which a file...
Claudio Cambra [Tue, 25 Jun 2024 10:52:31 +0000 (18:52 +0800)]
Prevent crash when updating file provider domains if the account for which a file provider domain was configured no longer exists

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2 years agoUse accountfwd header for account forward declaration in account header itself, preve...
Claudio Cambra [Tue, 25 Jun 2024 10:35:57 +0000 (18:35 +0800)]
Use accountfwd header for account forward declaration in account header itself, preventing conflicting decls

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2 years agoAssert validity of accountstate and its accountptr when adding it
Claudio Cambra [Tue, 25 Jun 2024 10:22:30 +0000 (18:22 +0800)]
Assert validity of accountstate and its accountptr when adding it

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2 years agoRemove overwrought loadFromSettings method from AccountState
Claudio Cambra [Tue, 25 Jun 2024 10:19:32 +0000 (18:19 +0800)]
Remove overwrought loadFromSettings method from AccountState

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2 years agoTake AccountPtr by reference in accountstate constructor
Claudio Cambra [Tue, 25 Jun 2024 10:18:03 +0000 (18:18 +0800)]
Take AccountPtr by reference in accountstate constructor

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2 years agoMerge pull request #6834 from nextcloud/backport/6832/stable-3.13
Matthieu Gallien [Tue, 25 Jun 2024 15:19:28 +0000 (17:19 +0200)]
Merge pull request #6834 from nextcloud/backport/6832/stable-3.13

[stable-3.13] Ci/test is mount root property

2 years agoautomated test: allow rename of the child items of a mount point
Matthieu Gallien [Tue, 25 Jun 2024 08:33:22 +0000 (10:33 +0200)]
automated test: allow rename of the child items of a mount point

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2 years agoautomated test: block rename of the top folder of a mount point
Matthieu Gallien [Tue, 25 Jun 2024 08:28:20 +0000 (10:28 +0200)]
automated test: block rename of the top folder of a mount point

encode current behavior in a new automated test

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2 years agoMerge pull request #6827 from nextcloud/bugfix/doNotUpdateVfsMetadataWhenSomethingEls...
Matthieu Gallien [Thu, 20 Jun 2024 07:25:22 +0000 (09:25 +0200)]
Merge pull request #6827 from nextcloud/bugfix/doNotUpdateVfsMetadataWhenSomethingElseIsNeeded

only use VFS update instruction when sync engine would do nothing

2 years agoonly use VFS update instruction when sync engine would do nothing
Matthieu Gallien [Wed, 19 Jun 2024 17:05:13 +0000 (19:05 +0200)]
only use VFS update instruction when sync engine would do nothing

will ensure we do not erroneously use this instruction when we should
not

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2 years agoMerge pull request #6812 from nextcloud/backport/6811/stable-3.13
Claudio Cambra [Thu, 13 Jun 2024 11:30:59 +0000 (19:30 +0800)]
Merge pull request #6812 from nextcloud/backport/6811/stable-3.13

[stable-3.13] Fix text colour for NCInputTextEdit

2 years agoFix text colour for NCInputTextEdit
Claudio Cambra [Thu, 13 Jun 2024 10:59:36 +0000 (18:59 +0800)]
Fix text colour for NCInputTextEdit

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2 years agoMerge pull request #6795 from nextcloud/backport/6714/stable-3.13
Matthieu Gallien [Wed, 5 Jun 2024 12:36:05 +0000 (14:36 +0200)]
Merge pull request #6795 from nextcloud/backport/6714/stable-3.13

stable-3.13: Backport #6714

2 years agoUpdate build-appimage.sh to use $VERSION_SUFFIX
Camila Ayres [Mon, 29 Apr 2024 19:12:13 +0000 (21:12 +0200)]
Update build-appimage.sh to use $VERSION_SUFFIX

Make sure that we can pass the value of MIRALL_VERSION_SUFFIX via parameter.

Signed-off-by: Camila Ayres <hello@camilasan.com>
2 years agoMerge pull request #6765 from nextcloud/ci/fixCompilation-stable-3.13
Matthieu Gallien [Tue, 21 May 2024 06:59:11 +0000 (08:59 +0200)]
Merge pull request #6765 from nextcloud/ci/fixCompilation-stable-3.13

you cannot call non const method on a temp const QString

2 years agoyou cannot call non const method on a temp const QString
Matthieu Gallien [Fri, 17 May 2024 14:34:45 +0000 (16:34 +0200)]
you cannot call non const method on a temp const QString

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2 years agoMerge pull request #6747 from nextcloud/backport/6742/stable-3.13
Claudio Cambra [Fri, 17 May 2024 08:12:33 +0000 (10:12 +0200)]
Merge pull request #6747 from nextcloud/backport/6742/stable-3.13

[stable-3.13] Bugfix/lockownertype setreadonly basedoncaps

2 years agoFix incorrect date parsing.
alex-z [Tue, 7 May 2024 22:45:08 +0000 (00:45 +0200)]
Fix incorrect date parsing.

Signed-off-by: alex-z <blackslayer4@gmail.com>
2 years agoBugfix. Files lock. Check lock owner type for setting readonly based on server capabi...
alex-z [Mon, 29 Apr 2024 19:57:02 +0000 (21:57 +0200)]
Bugfix. Files lock. Check lock owner type for setting readonly based on server capabilities (NC27/28 compatibility issue).

Signed-off-by: alex-z <blackslayer4@gmail.com>
2 years agoMerge pull request #6759 from nextcloud/backport/6706/stable-3.13
Claudio Cambra [Wed, 15 May 2024 19:48:31 +0000 (21:48 +0200)]
Merge pull request #6759 from nextcloud/backport/6706/stable-3.13

2 years agoCensor account details string in file provider logging
Claudio Cambra [Fri, 26 Apr 2024 10:06:29 +0000 (18:06 +0800)]
Censor account details string in file provider logging

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2 years agoMerge pull request #6755 from nextcloud/backport/6753/stable-3.13
Claudio Cambra [Wed, 15 May 2024 12:30:57 +0000 (14:30 +0200)]
Merge pull request #6755 from nextcloud/backport/6753/stable-3.13

[stable-3.13] Do not open client on install as this breaks MDM deployments

2 years agoDo not open client on install as this breaks MDM deployments
Claudio Cambra [Wed, 15 May 2024 09:07:28 +0000 (11:07 +0200)]
Do not open client on install as this breaks MDM deployments

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2 years agoMerge pull request #6709 from nextcloud/backport/6703/stable-3.13
Claudio Cambra [Sun, 28 Apr 2024 08:54:16 +0000 (16:54 +0800)]
Merge pull request #6709 from nextcloud/backport/6703/stable-3.13

[stable-3.13] chore(i18n): Improve grammar

2 years agochore(i18n): Improve grammar
rakekniven [Thu, 25 Apr 2024 20:06:02 +0000 (22:06 +0200)]
chore(i18n): Improve grammar

Fixes #6408

Reported at Transifex.

Signed-off-by: rakekniven <2069590+rakekniven@users.noreply.github.com>
2 years agoMerge pull request #6698 from nextcloud/backport/6691/stable-3.13
allexzander [Thu, 25 Apr 2024 14:58:29 +0000 (16:58 +0200)]
Merge pull request #6698 from nextcloud/backport/6691/stable-3.13

[stable-3.13] Bugfix/slow sync with tray open

2 years agoMerge pull request #6697 from nextcloud/backport/6696/stable-3.13
allexzander [Thu, 25 Apr 2024 14:58:09 +0000 (16:58 +0200)]
Merge pull request #6697 from nextcloud/backport/6696/stable-3.13

[stable-3.13] Bugfix. Conflict dialog for multiple files. Fix checkbox border colors for dark mode on Windows.

2 years agoMerge pull request #6692 from nextcloud/backport/6660/stable-3.13
allexzander [Thu, 25 Apr 2024 14:57:52 +0000 (16:57 +0200)]
Merge pull request #6692 from nextcloud/backport/6660/stable-3.13

[stable-3.13] Bugfix. Files lock. Fix incorrect readonly state.

2 years agoHotfix. Slow download speed while tray is open. Do not run rotation animation in...
alex-z [Thu, 18 Apr 2024 13:42:09 +0000 (15:42 +0200)]
Hotfix. Slow download speed while tray is open. Do not run rotation animation in syncstatus in tray.

Signed-off-by: alex-z <blackslayer4@gmail.com>
2 years agoJust for test. Disable status update to avoid havin a sync status animation in tray.
alex-z [Thu, 18 Apr 2024 13:16:51 +0000 (15:16 +0200)]
Just for test. Disable status update to avoid havin a sync status animation in tray.

Signed-off-by: alex-z <blackslayer4@gmail.com>
2 years agoBugfix. Conflict dialog for multiple files. Fix checkbox border colors for dark mode...
alex-z [Wed, 24 Apr 2024 22:43:01 +0000 (00:43 +0200)]
Bugfix. Conflict dialog for multiple files. Fix checkbox border colors for dark mode on Windows.

Signed-off-by: alex-z <blackslayer4@gmail.com>
2 years agoBugfix. Files lock. Fix incorrect readonly state.
alex-z [Mon, 22 Apr 2024 20:34:09 +0000 (22:34 +0200)]
Bugfix. Files lock. Fix incorrect readonly state.

Signed-off-by: alex-z <blackslayer4@gmail.com>
2 years agoBump version to 3.13.0.
Camila Ayres [Tue, 23 Apr 2024 18:39:56 +0000 (20:39 +0200)]
Bump version to 3.13.0.

Signed-off-by: Camila Ayres <hello@camilasan.com>
2 years agoAlways correctly set values for all fields in File Provider sharing UI
Claudio Cambra [Tue, 23 Apr 2024 15:48:53 +0000 (23:48 +0800)]
Always correctly set values for all fields in File Provider sharing UI

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2 years agoFetch macOS VFS package in autoupdater if the client is using the file provider module
Claudio Cambra [Tue, 23 Apr 2024 14:58:55 +0000 (22:58 +0800)]
Fetch macOS VFS package in autoupdater if the client is using the file provider module

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2 years agoPrevent use of invalid characters for file provider domain names
Claudio Cambra [Tue, 23 Apr 2024 13:59:45 +0000 (21:59 +0800)]
Prevent use of invalid characters for file provider domain names

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2 years agoOnly show successful debug archive creation dialog if it has indeed been successful
Claudio Cambra [Mon, 1 Apr 2024 10:00:27 +0000 (18:00 +0800)]
Only show successful debug archive creation dialog if it has indeed been successful

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2 years agoPrevent crash on creating debug archive in non-writeable location
Claudio Cambra [Mon, 1 Apr 2024 09:59:25 +0000 (17:59 +0800)]
Prevent crash on creating debug archive in non-writeable location

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2 years agoGive debug archive save location dialog a default location
Claudio Cambra [Mon, 1 Apr 2024 09:54:25 +0000 (17:54 +0800)]
Give debug archive save location dialog a default location

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2 years agoFix "false" error about bad applying of nodiscard to value type
Claudio Cambra [Wed, 27 Mar 2024 11:47:04 +0000 (19:47 +0800)]
Fix "false" error about bad applying of nodiscard to value type

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2 years agoRe-run update sync paused state slot when folder list has changed
Claudio Cambra [Wed, 27 Mar 2024 11:25:37 +0000 (19:25 +0800)]
Re-run update sync paused state slot when folder list has changed

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2 years agoMake sure to emit syncIsPausedChanged in syncIsPaused setter
Claudio Cambra [Wed, 27 Mar 2024 11:25:11 +0000 (19:25 +0800)]
Make sure to emit syncIsPausedChanged in syncIsPaused setter

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2 years agoMake sure to emit relevant signals and set sync is paused to true if relevant
Claudio Cambra [Wed, 27 Mar 2024 11:24:54 +0000 (19:24 +0800)]
Make sure to emit relevant signals and set sync is paused to true if relevant

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2 years agoExtract syncIsPaused initialisation into new updater slot
Claudio Cambra [Wed, 27 Mar 2024 10:09:33 +0000 (18:09 +0800)]
Extract syncIsPaused initialisation into new updater slot

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2 years agodo not cause implicit hydration of virtual files during sync
Matthieu Gallien [Wed, 3 Apr 2024 11:29:58 +0000 (13:29 +0200)]
do not cause implicit hydration of virtual files during sync

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2 years agoMerge pull request #6675 from nextcloud/backport/6621/stable-3.13
Matthieu Gallien [Tue, 23 Apr 2024 16:22:22 +0000 (18:22 +0200)]
Merge pull request #6675 from nextcloud/backport/6621/stable-3.13

[stable-3.13] if a virtual file change but nothing changed: set it as in sync

2 years agoif a virtual file change but bothing changed: set it as in sync
Matthieu Gallien [Thu, 11 Apr 2024 16:39:20 +0000 (18:39 +0200)]
if a virtual file change but bothing changed: set it as in sync

some software (at least outlook native software) may fiddle with CfApi
placeholder metadta and set a .msg file to be out of sync state when
opening it

in that case, we will let the sync engine go over it and decide what to
do

it is then possible in that case that we would just put it back in "in
sync" state

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2 years agoMerge pull request #6626 from nextcloud/backport/6613/stable-3.13
Matthieu Gallien [Tue, 23 Apr 2024 16:21:05 +0000 (18:21 +0200)]
Merge pull request #6626 from nextcloud/backport/6613/stable-3.13

[stable-3.13] Feature/office files lock newly created. Plus refactoring.

2 years agoDetect office files for locking on new upload. Notify FolderWatcher.
alex-z [Wed, 3 Apr 2024 16:10:49 +0000 (18:10 +0200)]
Detect office files for locking on new upload. Notify FolderWatcher.

Signed-off-by: alex-z <blackslayer4@gmail.com>
2 years agoMerge pull request #6674 from nextcloud/backport/6670/stable-3.13
Claudio Cambra [Tue, 23 Apr 2024 15:57:06 +0000 (23:57 +0800)]
Merge pull request #6674 from nextcloud/backport/6670/stable-3.13

[stable-3.13] Use davUser instead of direct credentials user in file provider

2 years agoUse davUser instead of direct credentials user in file provider
Claudio Cambra [Tue, 23 Apr 2024 14:24:20 +0000 (22:24 +0800)]
Use davUser instead of direct credentials user in file provider

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2 years agoMerge pull request #6667 from nextcloud/backport/6663/stable-3.13
Matthieu Gallien [Tue, 23 Apr 2024 15:29:44 +0000 (17:29 +0200)]
Merge pull request #6667 from nextcloud/backport/6663/stable-3.13

[stable-3.13] create registry keys needed for edit locally in local machine category

2 years agocreate registry keys needed for edit locally in local machine category
Matthieu Gallien [Tue, 23 Apr 2024 08:17:20 +0000 (10:17 +0200)]
create registry keys needed for edit locally in local machine category

creating the registry keys via installer for the current user is not
enough to have the feature enabled for all user accounts on a given
machine

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2 years agoMerge pull request #6664 from nextcloud/backport/6655/stable-3.13
Matthieu Gallien [Tue, 23 Apr 2024 12:47:57 +0000 (14:47 +0200)]
Merge pull request #6664 from nextcloud/backport/6655/stable-3.13

[stable-3.13] Bugfix/folder conflict disappear

2 years agoFix tests failure. Refactoring.
alex-z [Mon, 22 Apr 2024 19:44:49 +0000 (21:44 +0200)]
Fix tests failure. Refactoring.

Signed-off-by: alex-z <blackslayer4@gmail.com>
2 years agoFix CI errors.
alex-z [Sun, 21 Apr 2024 22:36:02 +0000 (00:36 +0200)]
Fix CI errors.

Signed-off-by: alex-z <blackslayer4@gmail.com>
2 years agoUnit tests for diverse conflicts in one folder.
alex-z [Sun, 21 Apr 2024 21:48:01 +0000 (23:48 +0200)]
Unit tests for diverse conflicts in one folder.

Signed-off-by: alex-z <blackslayer4@gmail.com>
2 years agoAlso support nested folder scenarios.
alex-z [Sun, 21 Apr 2024 19:21:32 +0000 (21:21 +0200)]
Also support nested folder scenarios.

Signed-off-by: alex-z <blackslayer4@gmail.com>
2 years ago Bugfix. Folder invalid char conflict. Do not update parent folder record if it conta...
alex-z [Sun, 21 Apr 2024 18:06:28 +0000 (20:06 +0200)]
 Bugfix. Folder invalid char conflict. Do not update parent folder record if it contains conflicted subfolders.

Signed-off-by: alex-z <blackslayer4@gmail.com>
2 years agoBugfix. Folder case clash conflict. Do not update parent folder record if it contains...
alex-z [Thu, 18 Apr 2024 21:49:47 +0000 (23:49 +0200)]
Bugfix. Folder case clash conflict. Do not update parent folder record if it contains conflicted subfolers. Also fix crash with local rename.

Signed-off-by: alex-z <blackslayer4@gmail.com>
2 years agoMerge pull request #6649 from nextcloud/backport/6648/stable-3.13
Claudio Cambra [Thu, 18 Apr 2024 05:15:05 +0000 (13:15 +0800)]
Merge pull request #6649 from nextcloud/backport/6648/stable-3.13

[stable-3.13] Fix possible issues with item metadata acquisition required for macOS VFS file sharing

2 years agoWrap access of itemUrl in security scoping
Claudio Cambra [Wed, 17 Apr 2024 20:55:14 +0000 (04:55 +0800)]
Wrap access of itemUrl in security scoping

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2 years agoExplicitly set bundle name and identifiers from env vars in FileProviderUIExt
Claudio Cambra [Wed, 17 Apr 2024 20:54:40 +0000 (04:54 +0800)]
Explicitly set bundle name and identifiers from env vars in FileProviderUIExt

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2 years agoUnify FileProviderUIExt entitlements
Claudio Cambra [Wed, 17 Apr 2024 18:26:49 +0000 (02:26 +0800)]
Unify FileProviderUIExt entitlements

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2 years agoMake sure network error is shown in UI instead of generic error
Claudio Cambra [Wed, 17 Apr 2024 18:07:48 +0000 (02:07 +0800)]
Make sure network error is shown in UI instead of generic error

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2 years agoImprove logging across file provider sharing
Claudio Cambra [Wed, 17 Apr 2024 17:58:38 +0000 (01:58 +0800)]
Improve logging across file provider sharing

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2 years agoMerge pull request #6645 from nextcloud/backport/6642/stable-3.13
Claudio Cambra [Wed, 17 Apr 2024 08:45:46 +0000 (16:45 +0800)]
Merge pull request #6645 from nextcloud/backport/6642/stable-3.13

[stable-3.13] Make use of NextcloudFileProviderKit in File Provider Module

2 years agoPin NextcloudFileProviderKit version to 0.9.0 (up to next major version)
Claudio Cambra [Wed, 17 Apr 2024 08:18:17 +0000 (16:18 +0800)]
Pin NextcloudFileProviderKit version to 0.9.0 (up to next major version)

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2 years agoRemove now-unneeded Realm dependency from FileProviderExt
Claudio Cambra [Wed, 17 Apr 2024 08:17:42 +0000 (16:17 +0800)]
Remove now-unneeded Realm dependency from FileProviderExt

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>