Skip to content

TOTP: OTP settings not updated if in invalid format [DATA LOSS] #3142

@Nothing4You

Description

@Nothing4You

Expected Behavior

TOTP secrets are persistently stored.

Current Behavior / Steps to Reproduce

  1. Start KeePassXC
  2. Unlock DB
  3. Select record
  4. Set up TOTP
  5. Enter secret
  6. Quit KeePassXC (only tested with autosave on every change enabled)
  7. Repeat steps 1-4
  8. TOTP secret is gone

Context

This used to work just fine in the past, I don't know which version broke it.
I'm experiencing this both on windows and macos.
fwiw this totp secret has been in my db for a long time before it disappeared, surviving many saves and restarts.

Debug Info

KeePassXC - Version 2.4.1
Revision: 7bafe65

Qt 5.12.2
Debugging mode is disabled.

Operating system: Windows 10 (10.0)
CPU architecture: x86_64
Kernel: winnt 10.0.17763

Enabled extensions:

  • Auto-Type
  • Browser Integration
  • SSH Agent
  • KeeShare (signed and unsigned sharing)
  • YubiKey

Cryptographic libraries:
libgcrypt 1.8.4

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions