Open OculiViridi opened 1 month ago
@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:
- Is the file owned/hosted by a personal or a business OneDrive account?
In my case they are both OneDrive premium (paid, not free) accounts, but not business.
- Is only the file shared or its whole folder?
It's a share set on the single kdbx file.
- Are you accessing it via a personal or business OneDrive account?
Both are accessed via OneDrive personal (but premium/paid) accounts.
- Just to confirm, the error shows up immediately after relaunching the app, not after hours/days?
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:
shared.kdbx
in her OneDrive's standard Documents
folder.Shared
folder and selects shared.kdbx
thereIn 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 Documents
, or OneDrive root, or some deep subfolder, and whether Bob selects the shared file directly from Shared
root, or some folder in there, or even mapped somewhere among his Files
(rather than Shared
).
Does your procedure look the same as above, or there are some intermediate folders?
@keepassium
The steps seems to be the same I did. The share is applied on the single kdbx file that is inside a non-shared folder. -> OK From KeePassium, the file is picked from the OndeDrive Shared default folder. -> OK
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...
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: