Laverna / laverna

Laverna is a JavaScript note taking application with Markdown editor and encryption support. Consider it like open source alternative to Evernote.
https://laverna.cc/index.html
Mozilla Public License 2.0
9.19k stars 801 forks source link

Synchronization off-line edited notebook(s) or note(s) not working. #373

Open DvorakDavid opened 8 years ago

DvorakDavid commented 8 years ago

Situation : I have installed Laverna + php-remotestorage (rs) on own server. Connect to Laverna from remote notebook is OK. On notebook Chromium and Firefox is running. Connect to Laverna (in both web-browsers) and connect to remotestorage from FF and Chromium is OK. When Firefox and Chromium is on-line (both MUST be) with remotestorage, then create, remove, EDITING notebook(s) or note(s) is OK => sync to second web-browser is working When Firefox and Chromium is OFF-LINE (both) with remotestorage, only create and remove notebook(s) or note(s) is OK => sync (after connect to rs) to second web-browser is working only for create/remove. BUT ... e.g.

  1. Create note in Firefox, which is OFF-LINE with remotestorage, and save created note. After save this note (in Firefox) connect to rs and ... disconnect.
  2. Now - Chromium connect to rs => note sync, new note I see.
  3. Now, disconnect Chromium from rs and after disconnect edit note or title (in Chromium) which was create in FF- e.g add row in note and save it. After save edited note (in Chromium) connect to rs and ... disconnect or I can stay on-line
  4. Finally - when connect to rs in Firefox .... note is old version without added row .....

Server - Ubuntu 14.04.3_amd64, Laverna - master branch dated 28.1.2016 Notebook - Ubuntu 14.04.3_amd64, Firifox 44.0, Chromium- 48.0...

wwebfor commented 8 years ago

Thank you for your thorough explanation how to reproduce the bug. We'll work on solving this as soon as possible.

DvorakDavid commented 8 years ago

This fix is No solution, on the contrary, the situation now is worse. Now - new row in note after sync is missing ... Situation - I have FF and Chromium on-line (both) with remotestorage, create note with one row => sync OK. Now - disconnect both browsers. In one (e.g. FF) add new row in note, save it, connect to RS ... and disconnect. Now - connect Chromium to RS ... sync "blink"..., but new row is not sync, in Chromium is it not. Chromium is still on-line ... Now - FF connect to RS ... sync "blink"..., new row still is, but after reload page .... new row is missing.

wwwredfish commented 8 years ago

Are you using the dev branch? If so, we recommend to use either a stable or a pre-release version. dev branch is still incomplete and may contain bugs which will lead to various problems.