Menu

#59 Uninitialized value on import

v1.0 (example)
closed-out-of-date
None
5
3 days ago
2026-03-04
Tomax User
No

Hello, I use v3.8.1 on Debian testing (package version 3.8.1-1.1) and noticed a warning when trying to import a kdbx:

$ kpcli
kpcli:/> import ... ...
Provide the master password: ***
Use of uninitialized value $kpxc_exe in -e at /usr/bin/kpcli line 6832.
KeePassXC 2.7.1 or newer is required to import KDBX4 files.

That points to this line:

if (! (-f -e $kpxc_exe)) { return 0; }

I think changing it as follows could be a way to solve the warning (since a message about --kpxcexe is going to be printed anyway):

`perl if (! (-f -e ($kpxc_exe // ''))) { return 0; }

Discussion

  • Lester Hightower

    • status: open --> closed-out-of-date
    • assigned_to: Lester Hightower
     
  • Lester Hightower

    Thanks for the bug report, but this issue was fixed in kpcli-4.0:

    hightowe@eden ~/src/perl/kpcli-code/releases $ diff 3.x/kpcli-3.8.pl 4.x/kpcli-4.0.pl | grep -A 3 6832c8527
    6832c8527
    <   if (! (-f -e $kpxc_exe)) { return 0; }
    ---
    >   if (! (defined($kpxc_exe) && -f -e $kpxc_exe)) { return 0; }
    

    It would be nice if Debian would advance the kpcli version. I'm not sure why it has not upgraded in so long...

     
  • Tomax User

    Tomax User - 3 days ago

    Thank you for your speedy response and, oh, my mistake reporting to upstream without checking the latest version, sorry. I mentioned this as a small motivation in an already existing bug report regarding version bumping in Debian testing: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1067146#10.

     

Log in to post a comment.

MongoDB Logo MongoDB