www

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

commit 8f742bc7abb0f68ce3e146922c89549d75d5cdc5
parent 7a5b1f7e32b619c2013a619196ecad762bd3d8a4
Author: Dan Stillman <dstillman@zotero.org>
Date:   Tue,  8 Nov 2011 02:45:17 -0500

Don't require manual sync on 40x response for invalid session errors

Server currently returns 500 but should return 403

Diffstat:
Mchrome/content/zotero/xpcom/sync.js | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/chrome/content/zotero/xpcom/sync.js b/chrome/content/zotero/xpcom/sync.js @@ -1849,7 +1849,7 @@ Zotero.Sync.Server = new function () { if (firstChild.localName == 'error') { // Don't automatically retry 400 errors - if (xmlhttp.status >= 400 && xmlhttp.status < 500) { + if (xmlhttp.status >= 400 && xmlhttp.status < 500 && !_invalidSession(xmlhttp)) { Zotero.debug("Server returned " + xmlhttp.status + " -- manual sync required", 2); Zotero.Sync.Server.manualSyncRequired = true; }