[Koha-bugs] [Bug 29970] 500 Error when a record cannot be displayed

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Feb 2 14:40:10 CET 2022


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

--- Comment #2 from Nick Clemens <nick at bywatersolutions.com> ---
Created attachment 130104
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=130104&action=edit
Bug 29970: eval processing of MARC record to avoid crash

detail.pl displays a warning at the top of the page when a record contains
parsing errors

Bug 28734 and bug 11175 added additional parsing of the MARC record, but
they did not catch the thrown errors.

The existing pattern in the script is to eval responses to avoid crashing

This patch wraps the new calls in eval{}

To test:
1 - Find a record in the staff catalog
2 - Edit the record
3 - In the 520 notes field, add an ASCII escape character (27 decimal, 1b hex)
    On ubuntu Ctrl+Shift+u, then 1b, enter
4 - Save the record
5 - 500 Error
6 - Apply patch
7 - Reload
8 - The record displays with a warning at the top

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


More information about the Koha-bugs mailing list