PhilippC / PhilippC/keepass2android

[BUG] Wrong state when saving in app, then syncing remote nextcloud.

Open
#2,396 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
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:

Hey,

i love your app and use it at least since 1 year and enjoy it's simplicity and feature-richness.

However, in the last month i observed some weird behavior that is quite breaking the app's use case for me: When making modifications in the app and saving it to my remote keepass file (nextcloud) everything seems to work fine. First i observed vanishing entries. Then i could trigger it explicitly via clicking on "Sync database". Then it should normally look at the local copy, then at the remote and should resolve / merge the two copies. In my case it basically just says "another program modified the file, reload it". I can click on "cancel" or "ok". When i click on "ok" all my changes are deleted and i seemingly have the "old" remote copy on my app.

I tried to remove the database (including cache) but this did not work out.

I attached the debug log and one can see that there is a hash difference even if there shouldn't be one.

debug.txt

Any advice here?

Btw: It is quite risky to log username/password combinations into the debug log. I nearly uploaded it here with credentials.

Describe what you expected to happen:

Updating the remote, syncing the modified version back to my device

What version of Keepass2Android are you using?

1.09e-r7

Which version of Android are you on?

13

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the attached debug.txt and tracing the app's remote sync flow for the hash mismatch described when saving to Nextcloud. Reproduce the conflict on Android 13 with version 1.09e-r7; done means local changes are retained and the modified database is correctly updated remotely without exposing credentials in logs.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, csharp
Domain
cloud, mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.