Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F117906409
D4640.1775390064.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None
D4640.1775390064.diff
View Options
diff --git a/lib/ext/Syncroton/Command/Sync.php b/lib/ext/Syncroton/Command/Sync.php
--- a/lib/ext/Syncroton/Command/Sync.php
+++ b/lib/ext/Syncroton/Command/Sync.php
@@ -964,6 +964,12 @@
}
$totalChanges += $collectionChanges;
+
+ // If the client resent an old sync-key, we should still respond with the latest sync key
+ if (isset($collectionData->syncState->counterNext)) {
+ //TODO we're not resending the changes in between, but I'm not sure we have to.
+ $collectionData->syncState->counter = $collectionData->syncState->counterNext;
+ }
// increase SyncKey if needed
if ((
diff --git a/lib/kolab_sync_backend_state.php b/lib/kolab_sync_backend_state.php
--- a/lib/kolab_sync_backend_state.php
+++ b/lib/kolab_sync_backend_state.php
@@ -41,6 +41,7 @@
*/
public function create($object, $keep_previous_state = true)
{
+ unset($object->counterNext);
$object = parent::create($object);
if ($keep_previous_state !== true) {
@@ -184,6 +185,7 @@
if ($next > $sync_key) {
// We store the clientIdMap with the "next" sync state, so we need to copy it back.
$state->clientIdMap = $states[$next]->clientIdMap;
+ $state->counterNext = $next;
} else {
// finally delete all entries marked for removal in syncroton_content table
$retryCounter = 0;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Apr 5, 11:54 AM (18 h, 27 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18822933
Default Alt Text
D4640.1775390064.diff (1 KB)
Attached To
Mode
D4640: Make sure we always respond with the latest sync key
Attached
Detach File
Event Timeline