nextcloud-desktop/test
Christian Kamm c5a0ce5a43 Selective sync: Skip excluded folders when reading db
When a new folder becomes selective-sync excluded, we already mark it
and all its parent folders with _invalid_ etags to force rediscovery.

That's not enough however. Later calls to csync_statedb_get_below_path
could still pull data about the excluded files into the remote tree.

That lead to incorrect behavior, such as uploads happening for folders
that had been explicitly excluded from sync.

To fix the problem, statedb_get_below_path is adjusted to not read the
data about excluded folders from the database.

Currently we can't wipe this data from the database outright because we
need it to determine whether the files in the excluded folder can be
wiped away or not.

See owncloud/enterprise#1965
2017-05-16 13:58:45 +02:00
..
benchmarks Tests: Add a large sync benchmark 2017-01-25 23:26:23 +01:00
manual/favlink License: Adjust license of GPLv2 source files to GPLv2+ 2016-10-25 11:06:54 +02:00
mockserver License: Adjust license of GPLv2 source files to GPLv2+ 2016-10-25 11:06:54 +02:00
scripts License: Adjust license of GPLv2 source files to GPLv2+ 2016-10-25 11:06:54 +02:00
CMakeLists.txt Use QTemporaryDir in TestOwnSql 2017-05-08 23:18:06 +02:00
owncloud_add_test.cmake Fix the UNIT_TESTING build on Windows 2017-02-14 14:32:41 +01:00
stub.cpp AccountState: Allow storing state in settings 2016-03-01 16:08:23 +01:00
syncenginetestutils.h AbstractNetworkJob: Improve redirect handling #5555 2017-03-07 13:18:01 +01:00
test_journal.db Checksums: Don't reupload if size and checksum are unchanged #3235 2015-11-23 11:59:56 +01:00
testallfilesdeleted.cpp Folder: Keep files option after aboutToRemoveAllFiles should not clear selective sync list (#5531) 2017-02-15 13:27:41 +01:00
testchecksumvalidator.cpp Fix the UNIT_TESTING build on Windows 2017-02-14 14:32:41 +01:00
testchunkingng.cpp ChunkingNG: Add some tests 2017-01-20 14:48:53 +01:00
testconcaturl.cpp Move concatUrl and settingsWithGroup to Utility 2016-10-25 12:05:28 +02:00
testcsyncsqlite.cpp For tests we do not need a xserver running. 2016-05-12 11:34:21 +02:00
testexcludedfiles.cpp Fix ExcludedFilesTest on macOS 2017-02-14 14:32:41 +01:00
testfilesystem.cpp Fix FileSystemTest on macOS 2017-02-14 14:32:41 +01:00
testfolder.cpp For tests we do not need a xserver running. 2016-05-12 11:34:21 +02:00
testfolderman.cpp Fix FolderManTest on macOS 2017-02-14 14:32:41 +01:00
testfolderwatcher.cpp Disable tests uncompatible with Qt4 for that build 2017-02-14 14:32:41 +01:00
testinotifywatcher.cpp For tests we do not need a xserver running. 2016-05-12 11:34:21 +02:00
testnetrcparser.cpp For tests we do not need a xserver running. 2016-05-12 11:34:21 +02:00
testowncloudpropagator.cpp For tests we do not need a xserver running. 2016-05-12 11:34:21 +02:00
testownsql.cpp Use QTemporaryDir in TestOwnSql 2017-05-08 23:18:06 +02:00
testplan.txt Minor typos in client test section 2015-09-10 18:11:44 +05:45
testsyncengine.cpp Selective sync: Skip excluded folders when reading db 2017-05-16 13:58:45 +02:00
testsyncfileitem.cpp For tests we do not need a xserver running. 2016-05-12 11:34:21 +02:00
testsyncfilestatustracker.cpp StatusTracker: Emit OK for the last child before parents (#5467) 2017-01-18 15:40:52 +01:00
testsyncjournaldb.cpp Bugfixes for sync journal name generation and usage 2016-11-23 16:48:15 +01:00
testupdater.cpp For tests we do not need a xserver running. 2016-05-12 11:34:21 +02:00
testuploadreset.cpp Reset stuck chunked uploads eventually #5344 (#5443) 2017-01-13 14:44:45 +01:00
testutility.cpp Transfers: Show a decimal for single digit MB rates #4428 2017-04-04 09:54:06 +02:00
testxmlparse.cpp Qt4: don't require a X server in the tests 2016-07-12 11:07:12 +02:00