www

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

commit 1d43d274ac06b66fe5eb6922a09f40f122ba5de2
parent aff9c1746a13a931f68d5f105ff6e554d3913017
Author: Dan Stillman <dstillman@zotero.org>
Date:   Thu, 31 Dec 2009 00:19:31 +0000

Don't automatically retry sync for 400 errors (now) sent from the server


Diffstat:
Mchrome/content/zotero/xpcom/sync.js | 9+++++++++
1 file changed, 9 insertions(+), 0 deletions(-)

diff --git a/chrome/content/zotero/xpcom/sync.js b/chrome/content/zotero/xpcom/sync.js @@ -1700,6 +1700,15 @@ Zotero.Sync.Server = new function () { } if (firstChild.localName == 'error') { + // Don't automatically retry 400 errors + if (xmlhttp.status >= 400 && xmlhttp.status < 500) { + Zotero.debug("Server returned " + xmlhttp.status + " -- manual sync required", 2); + Zotero.Sync.Server.manualSyncRequired = true; + } + else { + Zotero.debug("Server returned " + xmlhttp.status, 3); + } + switch (firstChild.getAttribute('code')) { case 'INVALID_UPLOAD_DATA': // On the off-chance that this error is due to invalid characters