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

Liz Rea <[email protected]> changed:

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

--- Comment #3 from Liz Rea <[email protected]> ---
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 <[email protected]>

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to