mirror of
https://github.com/zotero/zotero.git
synced 2026-10-07 02:58:09 +00:00
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:
parent
da9ac72d51
commit
2bcd77f870
1 changed files with 3 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue