[Koha-bugs] [Bug 30691] New: ElasticSearch Indexer crashes on authtypecode NAME_EVENT

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu May 5 14:57:20 CEST 2022


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30691

            Bug ID: 30691
           Summary: ElasticSearch Indexer crashes on authtypecode
                    NAME_EVENT
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P5 - low
         Component: Searching - Elasticsearch
          Assignee: koha-bugs at lists.koha-community.org
          Reporter: domm at plix.at

When GuessAuthTypeCode encounters a record containing tag 147, it returns
'NAME_EVENT'. But in the default Koha installation, 'NAME_EVENT' is not
registered in auth_types:

select * from auth_types where authtypecode = 'NAME_EVENT';
Empty set (0.000 sec)

This causes a bug in Koha/SearchEngine/Elasticsearch.pm:362, because $field is
undefined and then passed on to C4::Heading->new_from_field, which dies:
Can't call method "tag" on an undefined value at
/usr/share/koha/lib/C4/Heading.pm line 71

A simple fix (will be provided soon) is to just ignore and report such cases
(as done a few lines further down in Koha/SearchEngine/Elasticsearch.pm, when
there is no $authtypecode.

-- 
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