[Koha-bugs] [Bug 24243] Bad characters in MARC cause internal server error when searching catalog

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Dec 16 15:23:44 CET 2019


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

Liz Rea <wizzyrea at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #96295|0                           |1
        is obsolete|                            |

--- Comment #3 from Liz Rea <wizzyrea at gmail.com> ---
Created attachment 96340
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=96340&action=edit
Bug 24243: Do not explode if invalid metadata when searching catalogue

If the bibliographic record metadata cannot be decoded, the get_coins
call should catch the exception raised by Koha::Biblio::Metadata->record
to not explode

Error is: "Invalid data, cannot decode objec"

Test plan:
0/ Do not apply the patch
1/ Search for record at the OPAC
2/ Note one of the biblionumber from the first page result
3/ Set to empty string the biblio_metadata to make the error appears:
  update biblio_metadata set metadata="" where biblionumber=42;
4/ Try the same search
=> You get an internal server error
5/ Apply the patch, restart plack and try again
=> It now works, ie. it does not explode

Signed-off-by: Liz Rea <wizzyrea at gmail.com>

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


More information about the Koha-bugs mailing list