[Koha-bugs] [Bug 35680] New: YAML system preferences cause error if syspref data is not YAML string
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Tue Jan 2 11:38:01 CET 2024
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35680
Bug ID: 35680
Summary: YAML system preferences cause error if syspref data is
not YAML string
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P5 - low
Component: Architecture, internals, and plumbing
Assignee: koha-bugs at lists.koha-community.org
Reporter: pedro.amorim at ptfs-europe.com
QA Contact: testopia at bugs.koha-community.org
If a YAML preference has a string instead of the expected format, it'll cause
an error - tested with RisExportAdditionalFields and ILLModuleDisclaimerByType
but I'm sure others may cause this too.
To reproduce:
1) Add 'string' to RisExportAdditionalFields sys pref
2) Visit RIS export link:
/cgi-bin/koha/opac-export.pl?op=export&bib=262&format=ris
3) Notice the error
Can't use string ("string") as a HASH ref while "strict refs" in use at
/kohadevbox/koha/C4/Ris.pm line 132
Not critical, but ideally an error like this should not happen in the event
that a system preference has wrong data in it.
Adding bug 33431 as "See also" even though it's not the cause of the issue - as
the test plans info there may also help here.
--
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
More information about the Koha-bugs
mailing list