Discovery: If a move is forbidden, restore the source
authorChristian Kamm <mail@ckamm.de>
Wed, 28 Aug 2019 12:20:40 +0000 (14:20 +0200)
committerKevin Ottens <kevin.ottens@nextcloud.com>
Tue, 15 Dec 2020 09:58:58 +0000 (10:58 +0100)
commit28797baa39b22b35c871730ccb2b479c230ae6f0
tree242ab581d508bd6c8b103204e1c8298c40c41116
parentc9d103762284958345f40bac59be2b82c9de880b
Discovery: If a move is forbidden, restore the source

Previously the source was deleted (or attempted to be deleted), even if
the new location was not acceptable for upload. This could make data
unavilable on the server.

For #7410
src/libsync/discovery.cpp
src/libsync/discovery.h
src/libsync/discoveryphase.h
src/libsync/owncloudpropagator.h
src/libsync/syncengine.cpp
test/syncenginetestutils.h
test/testpermissions.cpp
test/testsyncengine.cpp