PhilippC / PhilippC/keepass2android
[BUG] Search doesn't work properly with several databases.
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 6.2k
- Forks
- 478
- Avg merge
- 1h 4m
- Merged PRs (30d)
- 2
Description
Checks
- I have read the FAQ section, searched the open issues, and still think this is a new bug.
Describe the bug you encountered:
I've created xyz.kdbx on my PC using keepass2.
I have stored keepass DB xyz.kdbx in cloud.
I use its local copy with blue local keepass2android.
I opened xyz.kdbx on my android smartphone.
Then I made some changes in record, containing string "abc" in xyz.kdbx (added some additional fields in Advanced) on my PC and auto sync it to cloud storage.
Later I downloaded DB to android smartphone as xyz(1).kdbx and opened it as local on android.
I searched for "abc" and get some results.
When I selected this search result from my understanding I received a search results from the xyz.kdbx and not from xyz(1).kdbx, which i supposed to currently working with.
Even, if i choose to open xyz(1).kdbx and navigate to my record through selecting group/record explicitly in the list, I get the old data in record from xyz.kdbx without some fields and not from xyz(1).kdbx, which I have opened right now.
If I go "back", than Application saying I need to select from xyz.kdbx, xyz(1).kdbx or open another.
There is on the top also search button.
If I used this button, than I see, that the results are shown only from xyz.kdbx and there are no any from xyz(1).kdbx.
The workaround I found was to select xyz.kdbx, close it.
Then search start working properly and I can reach record from the more recent version xyz(1).kdbx
Describe what you expected to happen:
Search is expected to show the records and the source for all opened DBs.
If i work with xyz(1).kdbx and navigate to the record in the list, it should show this record from xyz(1).kdbx and not from xyz.kdbx.
If I select "back" I'm expecting to get back to the list of records and not to the "database selection" each time.
What version of Keepass2Android are you using?
1.09e-r7
Which version of Android are you on?
14
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the reported sequence with xyz.kdbx and xyz(1).kdbx on Android 14: open both databases, search for a shared record, navigate to it, and use Back. Trace the search button, search results, database selection, and record navigation entry points. Done means results identify the correct source database, records come from the selected database, and Back returns to the record list.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, csharp
- Domain
- databases, mobile, search
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100