jcs / rubywarden

An unofficial, mostly Bitwarden-compatible API server written in Ruby (Sinatra and ActiveRecord)
ISC License
592 stars 49 forks source link

Error when importing from KeePass 2.x #119

Closed Kitof closed 2 years ago

Kitof commented 4 years ago

I've got a Traceback when importing from a KeePass 2.x with keepass_import.rb

converting login http://<snip>..
Traceback (most recent call last):
        15: from tools/keepass_import.rb:183:in `<main>'
        14: from tools/keepass_import.rb:169:in `getEntries'
        13: from tools/keepass_import.rb:169:in `each'
        12: from tools/keepass_import.rb:170:in `block in getEntries'
        11: from tools/keepass_import.rb:169:in `getEntries'
        10: from tools/keepass_import.rb:169:in `each'
         9: from tools/keepass_import.rb:170:in `block in getEntries'
         8: from tools/keepass_import.rb:125:in `getEntries'
         7: from tools/keepass_import.rb:125:in `each'
         6: from tools/keepass_import.rb:151:in `block in getEntries'
         5: from tools/keepass_import.rb:151:in `each_pair'
         4: from tools/keepass_import.rb:155:in `block (2 levels) in getEntries'
         3: from tools/keepass_import.rb:94:in `encrypt'
         2: from /opt/rubywarden/lib/user.rb:45:in `encrypt_data_with_master_password_key'
         1: from /opt/rubywarden/lib/bitwarden.rb:116:in `encrypt'
/opt/rubywarden/lib/bitwarden.rb:116:in `update': data must not be empty (ArgumentError)