Skip to content

Unable to access 2Fast data file after adding a 2FA code #210

Open
@User-4761

Description

@User-4761

Describe the bug

The application crashes after adding a new 2FA code, and after reopening, I receive a "Contraseña inválida" error. The program then prompts to change the password, but after entering the same password, the application crashes again. On reopening, instead of displaying the 2FA codes, an error related to 'SecretByteArray' is shown.

Steps to Reproduce

Steps to reproduce the behavior:

  1. Given the following environment:

    • Application: 2Fast
    • Application Version: 1.3.5.0
    • Operating System: Windows 11 Home, version 24H2
  2. Open the application.

  3. Add a new 2FA code entry to the program.

  4. The application crashes and closes immediately after adding the new code.

  5. Try to reopen the application.

  6. When prompted for the password, I enter the correct password, but the application shows the error:
    "Contraseña inválida: La contraseña guardada en esta aplicación no es válida para el archivo de datos. Es posible que haya cambiado la contraseña del archivo de datos utilizando otro dispositivo."
    (Translation: "Invalid password: The password saved in this application is not valid for the data file. It is possible that the data file's password has been changed using another device.")

  7. I select the option to "Cambiar la contraseña", enter the same password as the new one, and click "Aceptar." However, the program crashes again.

  8. When reopening the application after the crash, I enter the password once more. Instead of displaying the 2FA codes, the following error is shown:
    "Gestión de error: se produjo un error no controlado la última vez que se utilizó la aplicación..."
    (Translation: "Error management: An unhandled error occurred the last time the application was used...")

    Additional error message:
    System.Exception: Exception of type 'System.Exception' was thrown. Error setting value to 'SecretByteArray' on 'Project2FA.Repository.Models.TwoFACodeModel'.

Expected behavior

The application should allow me to change the password and access my 2FA codes without crashing. I expect that the file is properly validated, and the 2FA codes should be displayed correctly after entering the password.

Screenshots

Environment

  • App Version(s):
    1.3.5.0

  • Windows Version:

    • Windows 10 > May 2020 Update (19041)
    • Windows 11 21H2 Update (22000)
    • Windows 11 22H2/23H2 Update (22621)
    • Windows 11 24H2 Update

Additional context

  • The issue started after I added a new 2FA code to the application, causing the program to crash immediately after.
  • Upon trying to reopen the application, I was prompted to enter the password but received the "Contraseña inválida" error.
  • After attempting to change the password to the same value, the application crashed again.
  • When reopening the app again introducing the pasword, instead of showing the 2FA codes, it displayed an error message related to an issue with the SecretByteArray on the TwoFACodeModel, which may suggest a corruption or failure when updating the password.

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions