-
-
Notifications
You must be signed in to change notification settings - Fork 276
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
'Could not load your database.' error #1096
Comments
Describe the bug
After that my database disappers from the list, but I am able to readd it again in usual way (picking in filemanager). To Reproduce
Expected behavior KeePass Database
KeePassDX (please complete the following information):
Android (please complete the following information):
Additional context |
Thanks for formatting the issue. https://github.com/Kunzisoft/KeePassDX/wiki/File-Manager-and-Sync#compatibility |
I do not feel that it is enough to file it in the wiki. Also from your explanation I haven't figured out if your code makes use of persist permissions: |
This is not an expected behavior because by definition it is an exception.
https://github.com/Kunzisoft/KeePassDX/wiki/File-Manager-and-Sync#why-disparate-compatibility |
If some operation is known to be exception-prone, then it is possible to process exceptions and present them in user-friendly form. I mean some dialog, which would contain a hint what was wrong and how to fix that (e.g. adding "Reopen datavase" button right to that dialog). |
But this exception ( I don't know why this is happening to you for the database URI but the only cases I've referenced is an already fixed problem related to key file permissions. What I put in the related issues #1066 #1067 #1071 #1094 Either you have used the 3.0.0 beta version of KeePassDX (#1066) with a key file and you only need to reselect the file once with the stable version 3.0.0 to solve the problem and you made a mistake in writing the issue. Either as you describe, it comes from the main URI of the database from Google Drive, so it's a problem in the file manager. And I'm not going to make a specific dialog for each error case without being able to test all the errors that I don't even know exist due to the unwanted behavior of external applications... If this exception happens for the main database URI it means that the file permissions have been released in another way and not by KeePassDX so it's up to the application that releases the URI to know what it's doing. Displaying the exception in a dialog or in a snackbar does not change the use of the application, is only a change of view and does not solve a problem. I added the URI check on purpose to know if it was possible to open the database or not. Maybe the exception is raised in your case because Google Drive has not finished synchronizing your file in its cache, I don't know and KeePassDX doesn't have to know, just ask if it has the right or not. If Google Drive answers no but actually has the permissions, I can't do anything. So I'm not going to counteract unintended behavior of external file provider with weird tricks based on URIs. |
I keep my database on Google Drive.
And (from time to time) KeePassDX has difficulties to open it on start
The text was updated successfully, but these errors were encountered: