KeePassium icon indicating copy to clipboard operation
KeePassium copied to clipboard

[App] Local Database is shown twice

Open akuropka opened this issue 5 months ago • 6 comments

Description My local databse is shown twice in the database overview.

How to reproduce Steps to reproduce the behavior:

  1. Add a database through iTunes File Sharing.
  2. Open app and load databse.
  3. Close app and reopen.

Expected behavior I only see the database once.

Actual behavior I see the database twice.

Environment:

  • Device: iPhone 14 Pro Max
  • OS: iOS 17.3
  • App Version: 1.48.142 Pro

Screenshots Screenshot 2024-01-23 at 16 38 36 Screenshot 2024-01-23 at 16 38 54 Screenshot 2024-01-23 at 16 39 11

akuropka avatar Jan 23 '24 16:01 akuropka

I've updated to 17.3, but cannot reproduce this… Following the suggested steps, I end up with a single file in "On My iPhone → KeePassium Pro → Local copy". Which is the expected result.

Based on your screenshots, it looks like you have the same database stored twice, in different folders of "On My iPhone". One file is directly in "KeePassium Pro". The other one is somewhere in "On My iPhone".

It looks like the "somewhere" file might be some leftover link from an earlier database version. What happens if you remove that database from KeePassium? (The confirmation dialog should say "Remove", not "Delete".)

keepassium avatar Jan 23 '24 21:01 keepassium

After removing I can access the database within the app and select entries in Safari but it cannot fill it in. Please see by yourself what happens... I think this is the best way to show: RPReplay_Final1706058888

akuropka avatar Jan 24 '24 01:01 akuropka

Thank you, Andreas. I can reproduce the issue.

After some analysis, the bug is courtesy of iOS 17.3 changing how app extensions (such as AutoFill) resolve file references created by the main app. I have filed it as #338. We'll see if it can be fixed, or we have to revert to the ancient times where AutoFill worked completely independently from the main app.

keepassium avatar Jan 24 '24 09:01 keepassium

I didn't keep track in detail of it but the issue exists already since some time. Maybe it is possible to combine both (best with one time opening only) and hide the other one in the overview. Thanks for your attention.

akuropka avatar Jan 24 '24 11:01 akuropka

I didn't keep track in detail of it but the issue exists already since some time.

Given the nature of the underlying issue (#338), I believe there will be many people affected soon. So chances are, it is indeed a 17.3 (or at least 17.2) "innovation".

Maybe it is possible to combine both (best with one time opening only) and hide the other one in the overview.

This would probably cause more confusion than it solves. A possible workaround is to move the database outside of "On My iPhone / KeePassium" and add it to both the app and AutoFill. Then there will be only one database listed.

keepassium avatar Jan 25 '24 15:01 keepassium

What I noted as well is that within the app „both“ databases can be accessed.

akuropka avatar Jan 29 '24 19:01 akuropka

The underlying issue (#338) was fixed in iOS 17.4. So if you remove the duplicate file(s), both the app and AutoFill should show local databases normally.

keepassium avatar Mar 12 '24 15:03 keepassium

Did a rough check and seems to work now.

akuropka avatar Mar 12 '24 16:03 akuropka