Menu

field data lost due to Synchronization

Help
AndCycle
2015-11-17
2015-11-19
  • AndCycle

    AndCycle - 2015-11-17

    I know there has been specific said that field data will not implement,
    but I don't know there is a risk lost it due to synchronize,

    here is my scenerio,

    software
    keePass 2.30, with plugin KeeOTP, Tray Totp

    1. one local db A, A copied to dropbox folder as db B
    2. I have a sync trigger as http://keepass.info/help/kb/trigger_examples.html Prevent data loss by Dropbox
    3. open local db A, right click on an entry, "Timed One Time Password"
    4. as the entry have no previous otp setting, a configuratio window popup, paste the OTP setup, "OK" to save
    5. same right click again, verify the OTP is correct, and there is also a new String fields "otp" been added
    6. File->Save
    7. saved trigger the sync trigger
    8. the new otp String field on local db A is gone, delete by the synchronize operation

    kind of surprise ...

     
  • Paul

    Paul - 2015-11-17

    The implication is that the entry "last modified" time stamp is not being updated correctly, so the entry from database B replaces the one in database A.
    1. Check the "last modified" time stamp of the entry before and after you set up OTP.
    2. Save and sync.
    3. Modify the entry by manually adding a field.
    4. Save and sync.
    Is the change still there?

    cheers, Paul

     
  • AndCycle

    AndCycle - 2015-11-17

    the real cause of this issue is not that easy to reproduce as my scenerio,
    it happened rarely, but hit me multiple times in this scenerio,

    in my daily usage
    I mostly modified local db A as it resident on my laptop that much easier to do most of thing,
    and read db B on android phone by keepass2android,

    I just post the found here,
    and hope I will find the way to reproduce this issue so it can be correct fixed.

    and there is also other catch with synchronize,

    it won't alert about db with different master key, which will make unpredictable result.

     
  • Paul

    Paul - 2015-11-18

    You need to compare the last modified time of the entry that is a problem, that's what KeePass uses to perform a sync.

    Sync replaces the entire entry, not individual fields.

    If you have a different master key sync will fail, nothing unpredictable there.

    cheers, Paul

     

    Last edit: Paul 2015-11-18
  • AndCycle

    AndCycle - 2015-11-18

    thanks for the clearify on what happended under there

     

Log in to post a comment.