OneKeePass / mobile

A secure password manager for iOS and Android platforms
GNU General Public License v3.0
79 stars 5 forks source link

Export of DB without entries results in error #10

Closed gregordinary closed 9 months ago

gregordinary commented 9 months ago

Please agree to the following

Summary

On the main screen of the Android app, if you attempt to export a database that contains no entries, it will throw an error that it cannot locate the backup file.

Steps To Reproduce

Prerequisites

  1. OneKeePass Android App
  2. New or Existing OneKeePass database which contains no entries.

Steps to Reproduce Issue

  1. Open OneKeePass App
  2. Click on the three dots ⋮next to a blank database on the home screen.
  3. Choose Export To
  4. The following error is returned: API Call Error BackupNotFound: Backup file /data/user/0/com.onekeepassmobile/files/backups/<DB_FILE_NAME> is not found

Expected Result

When clicking Export To, options should appear to share the database via compatible apps/services on the device.

Actual Result

An API Error is thrown stating the backup file is not found.

Screenshots or Videos

Screenshot_20230808-220626684

Additional Context

Backup feature works fine on DBs with password entries. Guessing the app doesn't create a backup until after the first entry. Not sure which would be preferred:

  1. The app should create a backup immediately on DB Creation.
  2. The option to "Export To" should not appear for DBs with no entries.
  3. A different error message should be presented to the end-user detailing why the backup is unavailable.

Operating System

Android

Operating System Version

13

Device

Asus Zenfone 8 Flip

Build Version

0.7.0

jeyasankar commented 9 months ago

Thanks gregordinary for checking and creating a ticket for this. I will take a look and fix it

jeyasankar commented 9 months ago

Fixed in release 0.8.0.