From 9073239292a04f04820b2ed14f39921b97f42bbb Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Thu, 23 Feb 2017 18:07:03 -0500 Subject: [PATCH] Fix file sync error if local item version is greater than remote item This can happen because objects are uploaded in batches, but the version number from the last batch is used for all objects (since APIClient.uploadObjects() handles batching internally). --- chrome/content/zotero/xpcom/storage/zfs.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/chrome/content/zotero/xpcom/storage/zfs.js b/chrome/content/zotero/xpcom/storage/zfs.js index 98f7310fb6..84107bb3dc 100644 --- a/chrome/content/zotero/xpcom/storage/zfs.js +++ b/chrome/content/zotero/xpcom/storage/zfs.js @@ -495,10 +495,6 @@ Zotero.Sync.Storage.Mode.ZFS.prototype = { syncRequired: true }); } - if (version < item.version) { - throw new Error("Last-Modified-Version is lower than item version " - + `(${version} < ${item.version})`); - } // Get updated item metadata let library = Zotero.Libraries.get(item.libraryID);