dlech / KeeAgent

ssh agent plugin for KeePass 2.x
http://lechnology.com/software/keeagent
Other
522 stars 35 forks source link

KeeAgent "Add Key", "From File..." broken between 0.12.1 and 0.13.1 #358

Closed ziesemer closed 1 year ago

ziesemer commented 1 year ago

Looking forward to finally being able to upgrade to 0.13.1 and support PPK v3 files and the other added features, following the fixed UI efforts in #351. However, with either the official 0.13.1 release or the patched version in #351, I am no longer able to load PPKs "from file".

To reproduce:

  1. From KeePass, open Tools, then KeeAgent.
  2. Click the green '+' (plus) to to "Add Key", then select "From File...". ("From KeePass" works without issue.)
  3. Select a PPK file from the local disk. (A PPK v2 or v3 does not make a difference here.)
  4. Enter the passphrase when prompted by the "Enter passphrase for" dialog. (Entering an incorrect password here results in a different error.)
  5. Observe an error dialog with a red circle X, titled "KeePass", with "File ... failed with error: Object reference not set to an instance of an object."

Further notes:

  1. Tested with KeePass 2.52 64-bit, Windows 11.
  2. Running KeeAgent in either "Agent Mode" or "Client Mode" results in the same error.
  3. Adding the same PPK to an entry in KeePass, then loading "From KeePass" works around the issue.
ziesemer commented 1 year ago

Thank you!