www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit c29720743a6f3ef7dce9ee39fd0415a1c9440f11
parent 610017e4dfd70a06f311ce648b540fe051019f06
Author: Dan Stillman <dstillman@zotero.org>
Date:   Thu,  8 Aug 2013 14:31:53 -0400

Fix file sync error in Gecko 23+ if local file path is too long

Diffstat:
Mchrome/content/zotero/xpcom/storage.js | 7++++++-
1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/chrome/content/zotero/xpcom/storage.js b/chrome/content/zotero/xpcom/storage.js @@ -1058,7 +1058,12 @@ Zotero.Sync.Storage = new function () { } }) .catch(function (e) { - if (e instanceof OS.File.Error && e.becauseNoSuchFile) { + if (e instanceof OS.File.Error && + (e.becauseNoSuchFile + // This can happen if a path is too long on Windows, + // e.g. a file is being accessed on a VM through a share + // (and probably in other cases). + || (e.winLastError && e.winLastError == 3))) { Zotero.debug("Marking attachment " + lk + " as missing"); updatedStates[item.id] = Zotero.Sync.Storage.SYNC_STATE_TO_DOWNLOAD; return;