PhilippC / keepass2android

Password manager app for Android
https://play.google.com/store/apps/details?id=keepass2android.keepass2android
GNU General Public License v3.0
4.86k stars 393 forks source link

[BUG] syncing doesn't work with remote sftp file #2706

Open fukuro-kun opened 2 weeks ago

fukuro-kun commented 2 weeks ago

Checks

Describe the bug you encountered:

When I try to connect to a database using the sftp protocol, I get several (meaningless) error messages.

My language settings are in German, but I have translated the error messages to English. The path of my database is according to this scheme (has worked perfectly - so far)

sftp://keepass@192.168.1.x/home/keepass/database.kdbx?connectTimeout=10

Behaviour when opening the app: A window with a white background appears with the only inscription ‘Keepass2Android’ approx. 3 blank lines and a clickable ‘OK’ lettering at the bottom. Then the password entry mask appears for approx. 0.5 seconds, then the window with the white background and the ‘OK’ appears again.

Then I receive an error message for approx. 1 second in a window with rounded corners: 'Source file could not be saved: Failure. Save again or use the ‘Synchronise’ menu as soon as the file is available again'.

I can connect to the local database.

Behaviour when synchronising manually via the menu:

When I tap on ‘Synchronise database...’ in the ⁝ menu the following happens: A message ‘In progress...’ appears for approx. 0.2 seconds. Synchronising cached database...(source file is loading...)’. Then a window with a white background opens with the only inscription ‘Keepass2Android’ approx. 3 blank lines and a clickable ‘OK’ lettering at the bottom. When I close it, the short message ‘In progress...’ appears again for approx. 0.8 seconds. Synchronising cached database...(source file is loading...)’. Then the same, empty, meaningless error window ‘Keepass2Android’ appears. When I close it, the very short message ‘In progress...’ appears again for approx. 0.2 seconds. Synchronising cached database...(source file is loading...)’, then another small, narrow window appears at the bottom of the screen with rounded corners, which only says “Failure”.

Note: These strange, empty error windows have been appearing for quite some time (months?) during synchronisation processes, but have not noticeably affected the functionality - until now.

photo_2024-11-11_18-14-38

Describe what you expected to happen:

When I try to connect to a database using the sftp protocol, the synchronization should perform flawlessly. If I initiate the synchronisation manually when the database is open, it should also be completed without errors. (The read and write permissions have been checked thoroughly).

What version of Keepass2Android are you using?

1.10-pre

Which version of Android are you on?

9.1.0.290 (GBRC555E6)

fukuro-kun commented 2 weeks ago

Same problem with version 1.11-r0