Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KeePass2 Import Fails on CLI 2022.9.1 #3658

Open
atjbramley opened this issue Sep 30, 2022 · 1 comment
Open

KeePass2 Import Fails on CLI 2022.9.1 #3658

atjbramley opened this issue Sep 30, 2022 · 1 comment
Labels
bug cli CLI Application

Comments

@atjbramley
Copy link
Contributor

atjbramley commented Sep 30, 2022

Steps To Reproduce

  1. Attempt to import a valid Keepass2 XML file using:
    bw import keepass2xml (path to file)

Expected Result

The Keepass XML contents should be imported into the Vault

Actual Result

An error stating 'Missing KeePassFile > Root > Group node

Screenshots or Videos

keepass.import.mov

Additional Context

Appears to be a regression - the same file is imported correctly using bw CLI version 1.22.1

Operating System

Windows, macOS

Operating System Version

macOS 12.6 / Windows 11 in QEMU VM

Shell

Zsh, PowerShell

Build Version

2022.9.0

@atjbramley atjbramley added bug cli CLI Application labels Sep 30, 2022
@Boscop
Copy link

Boscop commented Dec 29, 2022

I'm getting the same error, it's preventing me from importing my data!
I checked the xml file and it has the KeePassFile > Root > Group node, so it's not missing!

I would appreciate if this can get fixed soon :)
@atjbramley Is there any known workaround? I just installed the CLI from npm (npm install -g @bitwarden/cli), where can I get a version that works?

Btw, what do you mean by version 1.22.1, I have version 2022.11.0 and I can't find version 1.22.1 anywhere.
I want to migrate from KeePassXC to Bitwarden but this issue is preventing me.
Because when I import the xml file in the web UI, only 20 entries get imported (with no error), but I have almost 900 entries in the xml file.

EDIT: I found version 1.22.1 here: https://github.com/bitwarden/cli/releases/tag/v1.22.1
But it doesn't work for me, I get this error

> bw import keepass2xml data.xml
Cannot read properties of null (reading '0')

Any idea what else I can try? :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug cli CLI Application
Projects
None yet
Development

No branches or pull requests

2 participants