Bug 30367

Summary: Plugins: Search explodes in error when searching for specific keywords
Product: Koha Reporter: Katrin Fischer <katrin.fischer>
Component: Plugin architectureAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low CC: andrewfh
Version: master   
Hardware: All   
OS: All   
See Also: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29787
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:

Description Katrin Fischer 2022-03-26 23:51:21 UTC
This was found testing bug 29787 so I'll copy part of the test plan here:

To test:
1. Have this on your koha-conf.xml file:

        <name>ByWater Solutions</name>
        <name>Theke Solutions</name>
        <name>PTFS Europe</name>

2. Restart all services:
   $ restart_all
3. Search for the term 'barclaycard'

The search will give an error:

malformed JSON string, neither tag, array, object, number, string or atom, at character offset 0 (before "(end of string)") at /usr/share/perl5/JSON.pm line 190

It might be an issue with the plugin, but we should catch errors in a nicer way for the users.
Comment 1 Katrin Fischer 2022-03-27 11:52:35 UTC
From bug 29787:

(In reply to Tomás Cohen Arazi from comment #9)
> Maybe GitHub API changed. ByWater and PTFS both are on GitHub while Theke's
> is on Gitlab.
Comment 2 Andrew Fuerste-Henry 2022-03-27 13:15:57 UTC
Thanks for filing this! We've known for a while that searching for "edifact" doesn't work, but haven't gotten around to putting a bug in. I know it used to just return no results, rather than a 500 error. I don't know when that changed.