Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Loads database from cache instead of Drive #1407

Closed
Dogway opened this issue Sep 22, 2022 · 4 comments
Closed

Loads database from cache instead of Drive #1407

Dogway opened this issue Sep 22, 2022 · 4 comments
Labels
bug FileSync Linked to FileSync app out of scope

Comments

@Dogway
Copy link

Dogway commented Sep 22, 2022

Describe the bug

I select the database and key files from my Drive account and it works. After a reboot (Android 12) both the database and key files are retrieved from cache and not Drive and fails to open after writing my password.

To Reproduce

Steps to reproduce the behavior:

  1. Load database and key files from a Drive account
  2. Enter password and access your database
  3. Set to auto load last used database in settings
  4. Exit and reboot
  5. Open KeePassDX and enter your password directly with auto-loaded database (check its path by clicking on the > arrow key to fold down database details)

Expected behavior

A clear and concise description of what you expected to happen.

KeePass Database

The database was created with old desktop KeePass version 1.21, but then updated through KeePassXC 2.3.4 and now using 2.7.1 synced to Drive via Drive for Desktop.

  • Size: 238Kb
  • Contains attachment: Yes (but only since a few days ago, was experiencing the issue before that)

KeePassDX:

  • Version: 3.4.5
  • Language: English

Android:

  • Device: Samsung Galaxy Tab S7 FE
  • Version: Android 12
@Dogway Dogway added the bug label Sep 22, 2022
@J-Jamet
Copy link
Member

J-Jamet commented Sep 23, 2022

The problem you describe is not a KeePassDX one. The Google Drive cache may not be up to date or the link is broken, so you need to do a "clear cache" of the Google Drive application.

https://github.com/Kunzisoft/KeePassDX/wiki/File-Manager-and-Sync#compatibility

@J-Jamet J-Jamet added out of scope FileSync Linked to FileSync app labels Sep 23, 2022
@J-Jamet J-Jamet closed this as completed Sep 23, 2022
@Dogway
Copy link
Author

Dogway commented Sep 23, 2022


I see, so the "load database from Cloud Service" is a mock-up, to deceive end-users. Good software design there.
I'll set up my own database sync and load directly from local location.

@J-Jamet
Copy link
Member

J-Jamet commented Sep 23, 2022

I see, so the "load database from Cloud Service" is a mock-up, to deceive end-users.

Everything has always been explained and I tried to use the appropriate terms to explain things.

If the file manager application correctly manages the Cloud and its cache, it works correctly.

Do you really think I work on my free time on an open source application by explaining things to disappoint the user?

Good software design there.

Thanks, KeePassDX tries to respect the Android and software design concepts as much as possible.

I'll set up my own database sync and load directly from local location.

As you wish.

@wobbba
Copy link

wobbba commented Apr 22, 2024

A fix for this problem:

Instead of directly taking the file from the GoogleDrive app on Android, use the app DriveSync to mirror a GoogleDrive folder onto your phone. You might need to star the folder in order to be able to select it in the app. Now, whenever you do a manual sync or after an automatic one, you can be sure that the version on your phone is the one from that time in the cloud and selecting the database file from favourites in KPDX will not use a cached version but instead the proper one.

Tested with Android 12 and Windows 11.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug FileSync Linked to FileSync app out of scope
Projects
None yet
Development

No branches or pull requests

3 participants