[Koha-bugs] [Bug 13028] Use of uninitialized value in string eq at misc/maintenance/cmp_sysprefs.pl line 194

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Oct 6 14:14:35 CEST 2014


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13028

--- Comment #1 from M. de Rooy <m.de.rooy at rijksmuseum.nl> ---
Created attachment 32005
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=32005&action=edit
Bug 13028: Resolve uninitialized value in string eq at cmp_sysprefs.pl line 194

If you use the restore option with a partial pref file not containing a
version, you will have this error. Also the count of updated prefs will be one
too high.

This is corrected by a better test of the hash value in the CheckVersionPref
subroutine.

Test plan:
[1] Create a small pref file and remove the version pref (if present). You
could for instance do a pref backup and remove most lines.
[2] Use the restore option with and without this patch.
    So, something like:
        maintclone/misc/maintenance/cmp_sysprefs.pl -c r -f 9999crucial.pref
[3] Check on the error message and the pref count.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list