Commit f0e80cd2 authored by Sebastian Kummer's avatar Sebastian Kummer

ZP-848 Remove folder stat if an older synckey is sent.

Released under the Affero GNU General Public License (AGPL) version 3.
parent 3f1f999e
......@@ -164,8 +164,11 @@ class Sync extends RequestProcessor {
$spa->RemoveSyncKey();
$spa->DelFolderStat();
}
else if ($synckey !== false)
else if ($synckey !== false && $synckey !== $spa->GetSyncKey()) {
ZLog::Write(LOGLEVEL_DEBUG, "HandleSync(): Synckey does not match latest saved for this folder, removing folderstat to force Exporter setup");
$spa->DelFolderStat();
$spa->SetSyncKey($synckey);
}
}
catch (StateInvalidException $stie) {
$spa = new SyncParameters();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment