Perl error message about an empty string
KeePass Command Line Interface
Brought to you by:
hightowe,
perlsaiyan
kpcli 2.8 gives me the following message now and then:
Can't use string ("") as a HASH ref while "strict refs" in use at /usr/local/bin/kpcli line 1895.
Steps to reproduce:
kpcli:/> show Internet/test1
Path: /Internet/
Title: test1
Uname: test
Pass: test
URL: test
Notes:
Can't use string ("") as a HASH ref while "strict refs" in use at /usr/local/bin/kpcli line 1895.
Using Perl v5.14.2.
Any ideas?
Could you upload a sample KeePass file that this happens on? Thanks.
Please also send the output of a vers command; like this:
kpcli-2.8:/> vers
VERSIONS
ReadLine being used: Term::ReadLine::Gnu
Operating system: linux ("Linux Mint 16 Petra")
Could you upload a sample KeePass file that this happens on?
Thanks,
--
Lester
On Mon, Apr 6, 2015 at 5:59 PM, Bram bramdd@users.sf.net wrote:
Related
Bugs:
#17Here you are:
Running on:
Actually, no need db file required. The steps to reproduce:
Oops... this also triggers a file changed warning!
It also looks like attaching fails:
Attaching fails...
Bests,
Bram
I see the problem now. File::KeePass did not introduce support for attachments until much, much later than the version that you are using (v0.03). I should have accounted for that fact in the code, but I failed to. Honestly, File::KeePass v0.03 is so old at this point (December 2010) that I probably should just declare it unsupported by kpcli.
Later, I may look into patching kpcli to not fail this way with v0.03 of File::KeePass, but for now, if you'll upgrade File::KeePass (preferably to 2.03) then I believe that your problem will go away: http://search.cpan.org/~rhandom/File-KeePass-2.03/
I would like to hear any reasons why upgrading File::KeePass is difficult for you, if it is.
Sincerely,
Lester
Ok, the message is gone after upgrading File:Keepass to 2.03. And indeed, attaching files does work now!
Bram