Temporary fix for 404 uploading missing object with local version

This shouldn't happen, but if it does, the API should return a 412 for
such objects, resulting in a full sync. Until the API fix is rolled out,
do the same on a 404.
This commit is contained in:
Dan Stillman 2016-08-12 01:51:14 -04:00
parent da9ac72d51
commit 2bcd77f870

View file

@ -1013,7 +1013,9 @@ Zotero.Sync.Data.Engine.prototype._uploadObjects = Zotero.Promise.coroutine(func
// This shouldn't happen, because the upload request includes a library
// version and should prevent an outdated upload before the object version is
// checked. If it does, we need to do a full sync.
if (e.code == 412) {
// TEMP - Revert after 2016-08-19
//if (e.code == 412) {
if (e.code == 404 || e.code == 412) {
return this.UPLOAD_RESULT_OBJECT_CONFLICT;
}