redbug26 / kypass

KeePass client for macOS & iOS

Home Page:https://www.kyuran.be

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bug: WebDAV sync issues overwriting old data

martin-rueegg opened this issue · comments

This was already reported on Discord Forum on 25.08.2023 with no reaction whatsoever.

Sync issues overwriting old data

(My friend) is using KyPass together with nextcloud as sync-backend (using webdav). The issue is, that KyPass does not always corretly evaluate the most recent version and keeps uploading the version stored on the ios device, overwriting the newer version on the server. And it keeps doing so until I reset the sync.

Now, unfortunately, this is not a one-time issue. I have - thanks to the file history on nextcloud - analyzed 61 versions of the file and compared them by sha1 hash. Turns out, that it happened 8 times already. Needless to say this is a disaster and, while appreciating it is the best KeePass client on iOS, it's also the most expensive one and one would expect there is a proper procedure in place to not overwrite any diverging version.

According to my observations, this is happening once a entry is added/changed on the device. But then, it is also happening when there was no change on the device and one just re-opens the app.

As an immediate remedy I would urgently suggest to download the remote file first and do a proper verification (e.g. hash comparison) before any version is uploaded.

Keepass4Android seems to have better verification measures in place and allows to merge the files, like KeePassXC on the Desktop does.

I don't know if the app produces any logs I can provide?

(...)

Looking forward to hearing back form the devs!

Thank you in advance,
Martin.

I have the same configuration (Nextcloud over webdav) and can confirm this issue.