Zoo-For-Zotero icon indicating copy to clipboard operation
Zoo-For-Zotero copied to clipboard

Automatic sync after upload of modified attachment

Open joachimneu opened this issue 4 years ago • 0 comments

The following works smoothly on my tablet:

  • Sync library
  • Modify an attached PDF by adding annotations etc
  • Return to Zoo for Zotero: it detects the change and offers to upload -> upload
  • Refresh the library by dragging down the top of the list -> the item whose modified attachment was just uploaded is refreshed
  • Modify the attached PDF of the same item again
  • Return to Zoo for Zotero: it detects the change and offers to upload -> upload
  • All good

The following does not work:

  • Sync library
  • Modify an attached PDF by adding annotations etc
  • Return to Zoo for Zotero: it detects the change and offers to upload -> upload
  • Do not manually trigger a refresh!
  • Modify the attached PDF of the same item again
  • Return to Zoo for Zotero: it detects the change and offers to upload -> upload
  • Error when uploading: java.lang.Exception: Server Response: 412 null

My guess would be that without triggering the refresh, the second update is attempted with respect to the original version of the attached PDF, rather than with respect to the first revision, and thus rejected by the server.

Expected/desired behavior would be to eliminate the necessary manual refresh, and instead have Zoo for Zotero do an automatic refresh right after an upload. This way, the updated state on the server after the first upload is kept track of by Zoo for Zotero, and the second upload should go through again.

Thanks for this very useful app, btw! :)

joachimneu avatar May 09 '20 07:05 joachimneu