nextcloud-desktop.git
5 years agoFix big-folder detection when vfs is disabled
Christian Kamm [Mon, 12 Nov 2018 10:27:09 +0000 (11:27 +0100)]
Fix big-folder detection when vfs is disabled

5 years agovfs: Implement dehydration tagging
Christian Kamm [Sat, 10 Nov 2018 12:30:15 +0000 (13:30 +0100)]
vfs: Implement dehydration tagging

5 years agovfs: Fix suffix detection and handling
Christian Kamm [Fri, 9 Nov 2018 17:24:37 +0000 (18:24 +0100)]
vfs: Fix suffix detection and handling

5 years agowinvfs: Better error reporting
Christian Kamm [Fri, 9 Nov 2018 11:17:24 +0000 (12:17 +0100)]
winvfs: Better error reporting

- fix download and validation error reporting
- add tests

5 years agoFixes after rebase to master
Christian Kamm [Wed, 7 Nov 2018 11:36:29 +0000 (12:36 +0100)]
Fixes after rebase to master

- use vfs suffix in ProcessDirectoryJob
- fix include vfs.h
- fix local vio passing vfs
- fix checksum computation
- vfs mode use
- mingw lambda compile issue

5 years agowinvfs: initial work
Christian Kamm [Wed, 15 Aug 2018 08:46:16 +0000 (10:46 +0200)]
winvfs: initial work

Done by ckamm and dschmidt

5 years agoFolderMan: Remove assumption of unique running sync
Christian Kamm [Thu, 26 Nov 2020 16:19:20 +0000 (17:19 +0100)]
FolderMan: Remove assumption of unique running sync

5 years agoChecksums: Work on QIODevice*s
Christian Kamm [Thu, 26 Nov 2020 16:12:11 +0000 (17:12 +0100)]
Checksums: Work on QIODevice*s

Needed for cfapi where we want to feed data through a custom device
which retrieves data from the windows api.

5 years agoIgnoreListEditor: increase a bit the size
Olivier Goffart [Thu, 29 Nov 2018 11:10:59 +0000 (12:10 +0100)]
IgnoreListEditor: increase a bit the size

Should Help for issue #6641

5 years agoAccount: Fix crash when deleting an account
Olivier Goffart [Thu, 22 Nov 2018 07:46:33 +0000 (08:46 +0100)]
Account: Fix crash when deleting an account

We should not have request parented to the account, otherwise we might get
a loop on the deletion order.

Issue #6893

5 years agoLockWatcher: Add chrono header
Christian Kamm [Mon, 12 Nov 2018 12:47:28 +0000 (13:47 +0100)]
LockWatcher: Add chrono header

5 years agocjhash: Fix build fix
Christian Kamm [Mon, 12 Nov 2018 12:45:56 +0000 (13:45 +0100)]
cjhash: Fix build fix

See 17a4055e8d658f24b1fc47c44fd2daf66c7d5dbf

5 years agocjhash: use Q_FALLTHROUGH
Olivier Goffart [Fri, 9 Nov 2018 15:43:35 +0000 (16:43 +0100)]
cjhash: use Q_FALLTHROUGH

This fixes the warning
   warning: unknown option after â€˜#pragma GCC diagnostic’ kind [-Wpragmas]

Issue #6872

5 years agoExcludes: switch all the path handling to QString
Kevin Ottens [Thu, 26 Nov 2020 15:55:04 +0000 (16:55 +0100)]
Excludes: switch all the path handling to QString

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
5 years agoCMakeLists.txt: increment sqlite version
Olivier Goffart [Tue, 20 Nov 2018 16:10:46 +0000 (17:10 +0100)]
CMakeLists.txt: increment sqlite version

3.9 is required for custom index to work

5 years agocsync_vio_locale: use QString for the path in opendir
Olivier Goffart [Tue, 6 Nov 2018 14:44:22 +0000 (15:44 +0100)]
csync_vio_locale: use QString for the path in opendir

So we don't have to convert to utf8 and back again

5 years agoRemove csync_misc: The code no longer use fnmatch
Olivier Goffart [Wed, 7 Nov 2018 10:09:41 +0000 (11:09 +0100)]
Remove csync_misc: The code no longer use fnmatch

5 years agoExclude: do everything with QString wiuthout converting to char*
Olivier Goffart [Thu, 26 Nov 2020 15:22:50 +0000 (16:22 +0100)]
Exclude: do everything with QString wiuthout converting to char*

5 years agoProcessDirectoryJob::process: optimize so there is only one map
Olivier Goffart [Tue, 6 Nov 2018 11:16:32 +0000 (12:16 +0100)]
ProcessDirectoryJob::process: optimize so there is only one map

5 years agoPropagateUpload: Avoid many allocations by using QByteArrayLiteral
Olivier Goffart [Tue, 6 Nov 2018 10:46:01 +0000 (11:46 +0100)]
PropagateUpload:  Avoid many allocations by using QByteArrayLiteral

5 years agoOptimisation: Add a cache SyncJournalDb::mapChecksumType
Olivier Goffart [Tue, 6 Nov 2018 09:45:22 +0000 (10:45 +0100)]
Optimisation: Add a cache SyncJournalDb::mapChecksumType

No need to do two sql query for something that's always the same and
there are very few checksum types

5 years agoSync: optimize by removing setFileRecordMetadata
Olivier Goffart [Tue, 6 Nov 2018 09:30:33 +0000 (10:30 +0100)]
Sync: optimize by removing setFileRecordMetadata

Inh most case we already have a record from before, so avoid doing a useless
lookup in the database.
In owncloudpropagator.cpp, directories do not have a checksum so no need
to call a function that preserves it

5 years agoTest System: Optimisations so the benchmark is significant
Olivier Goffart [Tue, 6 Nov 2018 08:48:13 +0000 (09:48 +0100)]
Test System: Optimisations so the benchmark is significant

5 years agoOwnSql: Speedup by avoiding allocating an error string on success
Olivier Goffart [Tue, 6 Nov 2018 08:47:34 +0000 (09:47 +0100)]
OwnSql: Speedup by avoiding allocating an error string on success

5 years agoowncloudcmd: fix compiliation with TOKEN_AUTH_ONLY
Gerhard Gappmeier [Fri, 9 Nov 2018 12:39:50 +0000 (13:39 +0100)]
owncloudcmd: fix compiliation with TOKEN_AUTH_ONLY

5 years agolibsync: Fix build error with TOKEN_AUTH_ONLY
Gerhard Gappmeier [Thu, 8 Nov 2018 17:17:29 +0000 (18:17 +0100)]
libsync: Fix build error with TOKEN_AUTH_ONLY

When enabling TOKEN_AUTH_ONLY, the code path using QPainter is disabled.
So we also don't need the includes.
This header is not available for Remarkable.

5 years agoDisable stack protector features when cross compiling
Gerhard Gappmeier [Thu, 8 Nov 2018 17:15:52 +0000 (18:15 +0100)]
Disable stack protector features when cross compiling

When cross-compiling this for remarkable using the poky toolchain
this results in linker errors with stack protector: libssp_nonshared.a
not found

5 years agoAdd CMake option to disable GUI build
Gerhard Gappmeier [Thu, 8 Nov 2018 17:15:04 +0000 (18:15 +0100)]
Add CMake option to disable GUI build

5 years agoGet DatabaseErrorTest to pass
Kevin Ottens [Thu, 26 Nov 2020 18:08:17 +0000 (19:08 +0100)]
Get DatabaseErrorTest to pass

The E2EE code path would get the engine to go wrong in case of db error.
It's just better to have a failing upload or failing mkdir later in those
cases.

Emitting signals from a ctor is a bad idea anyway

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
5 years agoTest that the sync behave well if there are errors while reading the database
Olivier Goffart [Thu, 26 Nov 2020 14:27:03 +0000 (15:27 +0100)]
Test that the sync behave well if there are errors while reading the database

5 years agoDiscovery: fix double emission of finished in case of error
Olivier Goffart [Mon, 5 Nov 2018 12:25:31 +0000 (13:25 +0100)]
Discovery: fix double emission of finished in case of error

5 years agoDiscovery: Fix downloading files when database is used for local discovery
Olivier Goffart [Wed, 7 Nov 2018 09:49:33 +0000 (10:49 +0100)]
Discovery: Fix downloading files when database is used for local discovery

This also fix the currently failling LockedFilesTest

5 years agoRemove csync.cpp: It's only dead code
Olivier Goffart [Wed, 7 Nov 2018 09:32:27 +0000 (10:32 +0100)]
Remove csync.cpp: It's only dead code

5 years agoAdd Ctrl-L as log window shortcut
Christian Kamm [Tue, 6 Nov 2018 09:59:28 +0000 (10:59 +0100)]
Add Ctrl-L as log window shortcut

F12 is taken on OSX and there's no other way of showing it.

5 years agoTest: Add test for locked file tracking and propagation
Christian Kamm [Mon, 5 Nov 2018 11:12:49 +0000 (12:12 +0100)]
Test: Add test for locked file tracking and propagation

5 years agoFolder: Treat file unlock similar to external change #6822
Christian Kamm [Thu, 1 Nov 2018 11:25:12 +0000 (12:25 +0100)]
Folder: Treat file unlock similar to external change #6822

For consistent handling of incoming notifications.

5 years agoPropagator: Add assert against duplicate done() calls
Christian Kamm [Mon, 8 Oct 2018 10:36:43 +0000 (12:36 +0200)]
Propagator: Add assert against duplicate done() calls

5 years agoRemoteDiscoveryTest: Fix after the merge from 2.5
Olivier Goffart [Mon, 5 Nov 2018 11:03:39 +0000 (12:03 +0100)]
RemoteDiscoveryTest: Fix after the merge from 2.5

The new discovery's message is slightly different

5 years agoTest: Check for folder in error message #6826
Christian Kamm [Thu, 1 Nov 2018 11:13:16 +0000 (12:13 +0100)]
Test: Check for folder in error message #6826

5 years agogitignore: XCode userdata
Markus Goetz [Wed, 31 Oct 2018 18:31:01 +0000 (19:31 +0100)]
gitignore: XCode userdata

5 years agoDiscovery: Fix renaming on windows
Olivier Goffart [Fri, 2 Nov 2018 15:46:38 +0000 (16:46 +0100)]
Discovery: Fix renaming on windows

buf.type is ItemFileSkip because csync_vio_local_stat does not set this field

5 years agoNew Discovery: Fix trailing slash causing failure on windows
Olivier Goffart [Thu, 1 Nov 2018 10:02:54 +0000 (11:02 +0100)]
New Discovery: Fix trailing slash causing failure on windows

5 years agoFolder: update the folder version
Olivier Goffart [Wed, 31 Oct 2018 15:34:23 +0000 (16:34 +0100)]
Folder: update the folder version

Since the new index would crash old version of the client, we need to
upgrade folder version so they do not load in the client 2.5.0

5 years agoSettings: Make FoldersWithPlaceholders group sticky
Christian Kamm [Mon, 29 Oct 2018 11:31:39 +0000 (12:31 +0100)]
Settings: Make FoldersWithPlaceholders group sticky

If virtual files are disabled on a folder it might still have db entries
or local virtual files that would confuse older client versions.

5 years agoowncloudcmd: Read the server version from the capabilities
Olivier Goffart [Mon, 29 Oct 2018 10:38:54 +0000 (11:38 +0100)]
owncloudcmd: Read the server version from the capabilities

Issue: #6846

5 years agoowncloudcmd: fetch the dav user
Olivier Goffart [Wed, 24 Oct 2018 08:44:56 +0000 (10:44 +0200)]
owncloudcmd: fetch the dav user

This is required to get the new endpoint working when the server
uses ldap or that the dav user is not the same as the login.

Issue #6830

5 years agoSharing: add the `shareWithAdditionalInfo` string in autocompletion results
Olivier Goffart [Wed, 24 Oct 2018 10:47:41 +0000 (12:47 +0200)]
Sharing: add the `shareWithAdditionalInfo` string in autocompletion results

Issue #6749

5 years agoMigration from 2.4: fallback to move file by file if directory move failled (#6807)
Olivier Goffart [Wed, 24 Oct 2018 13:42:42 +0000 (15:42 +0200)]
Migration from 2.4: fallback to move file by file if directory move failled (#6807)

Migration from 2.4: fallback to move file by file if directory move failed

This can happen if the directory already exist because, say, it was
created by the ownCloud outlook plugin which save its file in the same directory

5 years agoMove: Fix too many starting slashes in the destination header
Olivier Goffart [Wed, 24 Oct 2018 08:28:26 +0000 (10:28 +0200)]
Move: Fix too many starting slashes in the destination header

QDir::cleanPath does not remove starting slashes on windows.
So use account::davUrl which is already cleaned

Issue: #6824

5 years agoWizard: Reset the QSslConfiguration before checking the server
Olivier Goffart [Wed, 24 Oct 2018 09:57:08 +0000 (11:57 +0200)]
Wizard: Reset the QSslConfiguration before checking the server

Because a previous call with another demain might have set some
config for another server.

Issue #6832

5 years agoFix compiler warning
Olivier Goffart [Sat, 20 Oct 2018 13:13:23 +0000 (15:13 +0200)]
Fix compiler warning

5 years agoOAuth2: Refresh the token without aborting the sync
Olivier Goffart [Wed, 17 Oct 2018 12:49:00 +0000 (14:49 +0200)]
OAuth2: Refresh the token without aborting the sync

OAuth2 access token typically only has a token valid for 1 hour.
Before this patch, when the token was timing out during the sync, the
sync was aborted, and the ConnectionValidator was then requesting a new
token, so the sync can be started over.
If the discovery takes longer than the oauth2 validity, this means that
the sync can never proceed, as it would be always restarted from scratch.

With this patch, we try to transparently renew the OAuth2 token and restart
the jobs that failed because the access token was invalid.

Note that some changes were required in the GETFile job because it handled
the error itself and so it was erroring the jobs before its too late.

Issue #6814

5 years agoHttpCredentials: initialize all member inline
Olivier Goffart [Wed, 17 Oct 2018 09:25:54 +0000 (11:25 +0200)]
HttpCredentials: initialize all member inline

5 years agoDisable autostartCheckBox if autostart is configured system wide
Dominik Schmidt [Tue, 16 Oct 2018 17:18:01 +0000 (10:18 -0700)]
Disable autostartCheckBox if autostart is configured system wide

5 years agoDiscovery: Virtual file handling adjustments
Christian Kamm [Fri, 19 Oct 2018 12:40:39 +0000 (14:40 +0200)]
Discovery: Virtual file handling adjustments

- adjust virtual file path handing
- helpers for vfs suffix adding/removal
- helpers for isDirectory/isVirtual on SyncJournalRecords
- be clear about what PathTuple _local/_server mean

5 years agoDatabase: Add an index on the parent path
Olivier Goffart [Sat, 20 Oct 2018 11:24:31 +0000 (13:24 +0200)]
Database: Add an index on the parent path

So we can quickly query the items in a parent directory

This uses a custom slite3 function, which means that when downgrading the client,
or using another tool to add entries in the database, any insertion in the metadata
table will produce an error: "unknown function: parent_hash()"
(This will crash the client 2.5)

5 years agoAdd missing export
Olivier Goffart [Sat, 20 Oct 2018 11:25:22 +0000 (13:25 +0200)]
Add missing export

5 years agoDiscovery: Fix log output for instructions
Christian Kamm [Fri, 19 Oct 2018 09:23:50 +0000 (11:23 +0200)]
Discovery: Fix log output for instructions

5 years agoDiscovery: Don't rebuild invalidFilname regex each call
Christian Kamm [Fri, 19 Oct 2018 08:51:25 +0000 (10:51 +0200)]
Discovery: Don't rebuild invalidFilname regex each call

5 years agoDiscovery: Introduce smaller functions
Christian Kamm [Fri, 19 Oct 2018 08:45:11 +0000 (10:45 +0200)]
Discovery: Introduce smaller functions

5 years agoExcludes: drop csyncTraversalMatchFun()
Christian Kamm [Fri, 19 Oct 2018 08:28:22 +0000 (10:28 +0200)]
Excludes: drop csyncTraversalMatchFun()

The new discovery can call the traversal match function directly.

5 years agoDiscovery: Add back virtual file instruction checks
Christian Kamm [Fri, 19 Oct 2018 08:24:47 +0000 (10:24 +0200)]
Discovery: Add back virtual file instruction checks

5 years agoFix windows build
Olivier Goffart [Fri, 19 Oct 2018 07:11:01 +0000 (09:11 +0200)]
Fix windows build

5 years agoAccount Settings: fix progress being written in white when there are errors
Olivier Goffart [Wed, 17 Oct 2018 13:15:11 +0000 (15:15 +0200)]
Account Settings: fix progress being written in white when there are errors

5 years agoVirtual files: Wipe selective sync settings when enabled
Christian Kamm [Fri, 31 Aug 2018 13:50:54 +0000 (15:50 +0200)]
Virtual files: Wipe selective sync settings when enabled

5 years agovirtual files: show option only when branding allows it
Christian Kamm [Thu, 30 Aug 2018 15:55:24 +0000 (17:55 +0200)]
virtual files: show option only when branding allows it

5 years agoVirtual files: Use theme to check for option availability
Christian Kamm [Fri, 31 Aug 2018 13:50:36 +0000 (15:50 +0200)]
Virtual files: Use theme to check for option availability

5 years agoAccount Settings: Add a context menu entry to enable or disable virtual files
Olivier Goffart [Thu, 26 Nov 2020 08:56:52 +0000 (09:56 +0100)]
Account Settings: Add a context menu entry to enable or disable virtual files

Issue #6725

5 years agoUpload: Do not error out if the server do not send the X-OC-MTime: accepted header
Olivier Goffart [Tue, 9 Oct 2018 07:20:15 +0000 (09:20 +0200)]
Upload: Do not error out if the server do not send the X-OC-MTime: accepted header

If the server does not set the mtime, it is not a big problem for the
synchronisation.

The test was used before so we could do a PROPPATCH for server that did not
support this header. But now that all server supports that we don't need to
to the check. (We do not do the PROPPATCH since we got rid of the neon
dependency)

Apparently, it may happen that some backend don't support setting mtime
and this can lead to this error.

https://github.com/owncloud/client/issues/6797

5 years agoDo not select ownCloud in Finder after installation to fix #6781
Dominik Schmidt [Thu, 27 Sep 2018 18:08:48 +0000 (20:08 +0200)]
Do not select ownCloud in Finder after installation to fix #6781

5 years agoOAuth2: Store 'Account::davUser' in the config, and use that user for connecting
Olivier Goffart [Fri, 5 Oct 2018 17:45:43 +0000 (19:45 +0200)]
OAuth2: Store 'Account::davUser' in the config, and use that user for connecting

We need to use the user id to check if we are connected to the right account.
These might be different from the HTTP Basic Auth login. (LDAP setups)

When the account was configured as an oauth2 account form the wisard, the
http_user was already set correctly to the user id. But when the server is
upgrading from basic auth to oauth2, we need to pick the right login.

Note that Account::davUser() already defaults to the HTTP user when none
is set, so this means the upgrade will be fine if this is not set in the
config.

Issues:
https://github.com/owncloud/oauth2/issues/109
https://github.com/owncloud/enterprise/issues/2781

5 years agoLocal discovery: always recurse within touched directory
Olivier Goffart [Thu, 11 Oct 2018 10:15:44 +0000 (12:15 +0200)]
Local discovery: always recurse within touched directory

If the file system watcher tells us a directory was modified, we should
recurse into it because it means it is probably a new directory

Issue #6804

5 years agoPropagateUpload: Avoid crash due to cascading aborts
Christian Kamm [Mon, 8 Oct 2018 10:04:54 +0000 (12:04 +0200)]
PropagateUpload: Avoid crash due to cascading aborts

https://sentry.io/owncloud/desktop-win-and-mac/issues/698694072/activity/

5 years agoFix leaks in tests
Olivier Goffart [Fri, 5 Oct 2018 17:03:08 +0000 (19:03 +0200)]
Fix leaks in tests

As discovered by AddressSanitizer

5 years agoDiscovery: restructure processFileAnalyzeLocalInfo
Christian Kamm [Wed, 17 Oct 2018 08:59:45 +0000 (10:59 +0200)]
Discovery: restructure processFileAnalyzeLocalInfo

5 years agoDiscovery: easy conditions first in processFileAnalyzeRemoteInfo
Christian Kamm [Wed, 17 Oct 2018 08:43:25 +0000 (10:43 +0200)]
Discovery: easy conditions first in processFileAnalyzeRemoteInfo

Removing two levels of indent that way

5 years agoDiscovery: Add comments
Christian Kamm [Wed, 17 Oct 2018 08:42:58 +0000 (10:42 +0200)]
Discovery: Add comments

5 years agoDiscovery: make sure finished is not called twice, even in case of errors
Olivier Goffart [Tue, 16 Oct 2018 14:18:39 +0000 (16:18 +0200)]
Discovery: make sure finished is not called twice, even in case of errors

5 years agoRemove the backup deteciton code which was used for server < 9.1
Olivier Goffart [Tue, 16 Oct 2018 14:08:49 +0000 (16:08 +0200)]
Remove the backup deteciton code which was used for server < 9.1

5 years agoDiscovery: Remove stale DB entries
Olivier Goffart [Tue, 16 Oct 2018 14:00:59 +0000 (16:00 +0200)]
Discovery: Remove stale DB entries

And test the Remove/Remove case.

This means we need to always query the database for all the entries.
This showed another small bug in the test in which sync item for virtual
files at the root could have a slash in front of them.

5 years agoDiscovery: Comments and visibility adjustments
Christian Kamm [Tue, 16 Oct 2018 13:08:04 +0000 (15:08 +0200)]
Discovery: Comments and visibility adjustments

5 years agoDiscovery: cleanups and comments
Olivier Goffart [Tue, 16 Oct 2018 11:25:17 +0000 (13:25 +0200)]
Discovery: cleanups and comments

5 years agoDiscovery: move checkMovePermissions to its own function
Olivier Goffart [Tue, 16 Oct 2018 12:55:39 +0000 (14:55 +0200)]
Discovery: move checkMovePermissions to its own function

5 years agoDiscovery: Adjust the instruction in case of resolved conflict
Olivier Goffart [Tue, 16 Oct 2018 12:44:20 +0000 (14:44 +0200)]
Discovery: Adjust the instruction in case of resolved conflict

When resolving a conflict because the file was just updated on the server,
we write all the metadata on the database immediatly, so INSTRUCITON_NONE
is enough and UPDATE_METADATA is not needed

5 years agoProcessDirectoryJob: always set _childModified to true, regardless the direction
Olivier Goffart [Tue, 16 Oct 2018 11:42:52 +0000 (13:42 +0200)]
ProcessDirectoryJob: always set _childModified to true, regardless the direction

This was like that to handle the case of CSYNC_INSTRUCTION_TYPE_CHANGE, but just add
a condition in this location.

5 years agoDiscovery phase: refactor some code in DiscoveryPhase::findAndCancelDeletedJob
Olivier Goffart [Tue, 16 Oct 2018 11:03:24 +0000 (13:03 +0200)]
Discovery phase: refactor some code in DiscoveryPhase::findAndCancelDeletedJob

Less code duplication

5 years agoNew Discovery Algorithm: more cleanups
Olivier Goffart [Tue, 16 Oct 2018 09:03:46 +0000 (11:03 +0200)]
New Discovery Algorithm: more cleanups

 - rename progress() to be more explicit
 - Make some more member of the discovery phase private

5 years agoFixup commit 835c9163374f42003aa2f7795ade3f4ff62c8877
Olivier Goffart [Mon, 15 Oct 2018 16:05:51 +0000 (18:05 +0200)]
Fixup commit 835c9163374f42003aa2f7795ade3f4ff62c8877

The previous code considered the also HTTP 207 code without the
application/xml header to have this message.
httpCode 0 does not make much sense anyway.

This change the behavior to consider any 2xx without the xml header
to show this error message

5 years agoNew discovery algorithm: fixups
Olivier Goffart [Mon, 15 Oct 2018 15:02:04 +0000 (17:02 +0200)]
New discovery algorithm: fixups

Adapt reviews from ckamm in https://github.com/owncloud/client/pull/6738#pullrequestreview-164623532

- SyncJournalFileRecord: initialize everything inline
- Add more comments
- And some ENFORCE

5 years agoMove Result to its own header
Olivier Goffart [Mon, 15 Oct 2018 14:51:24 +0000 (16:51 +0200)]
Move Result to its own header

5 years agoNew discovery algorithm: Parallel PROPFIND
Olivier Goffart [Fri, 12 Oct 2018 12:44:33 +0000 (14:44 +0200)]
New discovery algorithm: Parallel PROPFIND

5 years agoNew Discovery algorithm: Remove the sync cleanup phase
Olivier Goffart [Tue, 9 Oct 2018 13:54:42 +0000 (15:54 +0200)]
New Discovery algorithm: Remove the sync cleanup phase

Since we do not recurse within some directories, many files are not seen.

The stale entry will cleanup by themself as the sync engine try to remove
the files that are already removed.
Should we need to actually do this cleanup, it should be dotected in the
discovery.

5 years agoNew discovery algorithm: Set the originalFile for ignored files
Olivier Goffart [Tue, 9 Oct 2018 13:54:03 +0000 (15:54 +0200)]
New discovery algorithm: Set the originalFile for ignored files

This is used to show the name in the UI

5 years agoNew Propagation algorithm: Fetch, and emit, the root etag
Olivier Goffart [Tue, 9 Oct 2018 13:12:02 +0000 (15:12 +0200)]
New Propagation algorithm: Fetch, and emit, the root etag

Remove the feature to concatenate etags as servers that don't
have a root etag are no longer suported

5 years agoNew Discovery Algorithm: Ge tthe size of new folders
Olivier Goffart [Tue, 9 Oct 2018 11:45:27 +0000 (13:45 +0200)]
New Discovery Algorithm: Ge tthe size of new folders

Also add a test that this works properly

5 years agoNew Discovery algorithm: Split the process function even further
Olivier Goffart [Tue, 9 Oct 2018 10:49:21 +0000 (12:49 +0200)]
New Discovery algorithm: Split the process function even further

Move the finialization in its own function.
This allow to save a bit of code duplication.

Also change the order of the parameter in the constructor for consistency

5 years agoNew Discovery Algo: Refactor by splitting the processFile in two
Olivier Goffart [Fri, 5 Oct 2018 09:05:08 +0000 (11:05 +0200)]
New Discovery Algo: Refactor by splitting the processFile in two

5 years agoNew Discovery Algorithm: Handle rename of virtual files
Olivier Goffart [Thu, 4 Oct 2018 13:04:29 +0000 (15:04 +0200)]
New Discovery Algorithm: Handle rename of virtual files

5 years agoVirtual files: Renames propagate #6718
Christian Kamm [Wed, 26 Sep 2018 11:41:02 +0000 (13:41 +0200)]
Virtual files: Renames propagate #6718

5 years agoFolder Wizard: Disable the 'choose what to sync' treeview if virtual files are selected
Olivier Goffart [Sun, 16 Sep 2018 10:25:44 +0000 (12:25 +0200)]
Folder Wizard: Disable the 'choose what to sync' treeview if virtual files are selected

Don't allow to configure virtual files with a selective sync blacklist