-
Notifications
You must be signed in to change notification settings - Fork 104
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
OneDrive shared kdbx file loading fails #387
Comments
@OculiViridi , thank you for the report. This is likely a regression after introducing Dropbox and GDrive integration. Much of the code between the three was the same and was moved to shared classes. I remember some OneDrive parameters (related to shared files) seemed redundant during the process. They were removed and everything continued to work without them — including the shared files. Apparently, they were not that redundant after all… That said, I struggle to reproduce the error:
|
In my case they are both OneDrive premium (paid, not free) accounts, but not business.
It's a share set on the single kdbx file.
Both are accessed via OneDrive personal (but premium/paid) accounts.
I realize now that the description of this aspect wasn't entirely correct, because actually, the message appears immediately after the first time the file is open after the download. When the db is opened, in fact, I already see the message "The database is not reachable. This is the latest local copy." and when I get back to the db list I see the "The resource could not be found." error below the filename. |
@OculiViridi , thank you for the details! I've managed to reproduce the issue with shared files on personal OneDrive accounts. But in my case the error says "ObjectHandle is Invalid", so it looks like a different — although possibly related — problem. There is a good chance that fixing the "object handle" bug would also fix the "resource not found" one as a side effect, but it would be nice to test the fix on both. These were my steps to replicate the issue:
In general terms, this looks similar to your steps, except the message is different. I suspect the difference is caused by some detail on Alice's or Bob's side: whether Alice's database is in Does your procedure look the same as above, or there are some intermediate folders? |
The steps seems to be the same I did. However, there is a small difference, which I don't know if it can influence. The share I created for the file in OneDrive is "read only" type... |
@OculiViridi , I've been looking into this for a few hours now, and found a possible workaround. Try moving the database to a folder and share that folder instead of the file itself. Basically, you should find the file via Connect to Server → One Drive → Shared → Folder name → database.kdbx. Does this work on your side? |
Description
I have multiple kdbx files stored on OneDrive premium cloud service and one of them is a shared file from another OneDrive premium cloud service account. The OneDrive share works as excepted, so I see the file and I can download and open it without issues for about a couple of years.
It worked until about a couple of months ago, then someday I started to see the following message below the shared file:
As said, the file is ok and it is reachable from everywhere: OneDrive web, OneDrive iOS app, OneDrive PC application, iOS iFile, etc.. I haven't made any change to the share or something.
So, first I tried to remove the file from KeePassium and add it again using the "Connect to server - OneDrive" function. And the strange thing is that the file is correctly taken and loaded into KeePassium the first time, but then, after the first opening, every time I open the app, the error message appears.
So I decided to try to remove and recreate the share for the file from OneDrive, but nothing changed.
Other kdbx files have been loaded into KeePassium the same way using "Connect to server - OneDrive" function and they're not affected by the issue. The only difference is "regular" file vs shared.
The same issue is present on my wife's iPhone with the same KeePassium app version, related to another OneDrive shared kdbx file.
How to reproduce
Steps to reproduce the behavior:
Expected behavior
It should works like it was till a couple of months ago, so just like any other kdbx file.
Screenshots
A screenshot of the error message that appears every time I open the app.
Environment:
The text was updated successfully, but these errors were encountered: