Skip to content

Endless loop when auto-open in a file opens a file that auto-opens the first file #3334

@hrehfeld

Description

@hrehfeld

Steps to Reproduce

  1. File A has AutoOpen to file B
  2. File B has AutoOpen to file A
  3. Try opening file A
  4. Endless loop of KPXC opening databases

Expected Behavior

Open both databases.

Current Behavior

KPXC gets stuck in an endless loop opening databases. The UI is still clickable but very laggy, and the first database never gets opened.

This will probably also fail transitively? I.e. A -> B -> C -> A
And fails when using a single file that autoopen-references itself: A -> A

Possible Solution

Check which files are already open / were already requested to auto-open. (This also happens when file B is already open)

Debug Info

keepassxc-git 2.4.3.r54.ga22e8a1f-1

Operating system: ARCH
CPU architecture: x86
Kernel: linux 5.1.14.arch1-1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions