Skip to content

Unable to save at all after trying to 'save as' with an invalid name #4525

@ameyer0

Description

@ameyer0

Expected Behavior

When trying to 'save as' the active database with an invalid file name, it should fail, and if 'cancel' is selected after that, future saves should use the original file name.

Current Behavior

If 'save as' fails and is cancelled, future saves will attempt to use the invalid file name, making saving impossible except through 'save as.'

Possible Solution

The 'save as' method changes the database path to the user's input before attempting to save, but doesn't change the path back when the save fails.

Steps to Reproduce

  1. Database > Save database as
  2. Enter an invalid file name (e.g. does_not_exist/database.kdbx)
  3. Attempt to save at least once, then cancel
    Attempting to save (except through Save As) will now fail

Context

It's a bit of an obscure situation, but if a user encounters it they could lose data (since it also affects autosaves and saving on close).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions