OneKeePass / mobile

A secure password manager for iOS and Android platforms
GNU General Public License v3.0
79 stars 5 forks source link

Database opened from OneDrive is not synchronized #19

Open ggbce opened 4 months ago

ggbce commented 4 months ago

Please agree to the following

Summary

Database opened from OneDrive is not synchronized

Steps To Reproduce

  1. Launch the aplication
  2. Select a database at bottom list (not use new or open) where this database was previously added in the past and is coming from OneDrive share.
  3. Type the password to open it
  4. The content of the database doesn't reflect what I have on this same database if I open it from my OneDrive on my Windows laptop.

Expected Result

Should have the same data coming from OneDrive

Actual Result

Content of the database is not right.

Screenshots or Videos

No response

Additional Context

If I close the database, then use "Open database" from the main menu and select the same database from browsing to OneDrive, then I got the updated version !

NOTE: When I choose "Open Databse", I'm directly got a folder browser on my OneDrive share in the folder where my database is (then it's also not a OneDrive access issue or configuration lost).

It seem OneKeePass try to keep a local cache of the database instead fetch the content from OneDrive.

NOTE: Also, It's not a situation where the database could be open on both asset or where OneDrive is not synchronized from the laptop (confirmed).

I observed a differential of many days when I take a look on missing entries.

Operating System

Android

Operating System Version

Android 12

Device

Samsung

Build Version

0.10.0

jeyasankar commented 3 months ago

Thanks @ggbce. I will try to duplicate this bug and find a solution

jeyasankar commented 3 months ago

Hi @ggbce ,

Do you see the same issue if you use 'Close database' instead of 'Lock database'? When you use 'Lock database', the database is locked but the content is kept in the memory for a quick unlock. When you use 'Close database', the database is closed and nothing is kept in memory.

I think after you use 'Close database', if you open the database by clicking from the list of databases, it should load the latest database. Please check

Thanks

JGG-Apps commented 2 months ago

I confirm if I lock or close database; or simple back to main page then close/kill entire application, the result will be the same...

The only working method is to "not select" the database in the knowned databases list, but choose "open database" and select the same database from this browsing.

jeyasankar commented 1 month ago

Thanks @JGG-Apps for reconfirming the issue. I will try to duplicate the issue in my environment and find a fix