Skip to content

Duplicate Database Filename Shows Generic Error Instead of Specific Message #321

@daxiami233

Description

@daxiami233

Overview

Observed behavior

  • The app prevents creating the database, which is correct.
  • However, the page only shows a generic error message:
    • Error has been occurred
  • The message does not explain that the database file already exists.
  • The user cannot clearly understand why the database creation failed.

Screenshot:

Image Image

Expected behavior

  • When the entered database filename already exists, the app should show a specific error message, such as:
    • File already exists
    • Database with this name already exists
  • The error should clearly indicate that the failure is caused by a duplicate filename.
  • Database creation should remain blocked until the user enters a unique filename.

How to reproduce

  1. Open the app and go to the New database page.
  2. Select Private app storage as the storage type.
  3. Enter an existing database filename in the File name field, for example test_recent.
  4. Enter a password in the Password field.
  5. Enter the same password in the Confirm field.
  6. Tap the checkmark button in the top-right corner.
  7. Observe the error message shown at the top of the page.

Version

1.16.0 / 11600

Android Version

Android 9

Device Model

Android 9 Emulator

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions