[Koha-bugs] [Bug 35104] We should warn when attempting to save MARC records that contain characters invalid in XML

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Dec 6 12:53:23 CET 2023


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

--- Comment #21 from Martin Renvoize <martin.renvoize at ptfs-europe.com> ---
Created attachment 159615
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=159615&action=edit
Bug 35104: [Alternative] Throw exception on store of invalid marcxml

This patch adds an exception into ModBilioMarc to prevent erronious
marcxml being stored into the database.  We also remove the cleanup of
such characters from TransformHtmlToMarc as introduced by bug 34549.

This should result in there being no way, outside of direct database
manipulation, of getting forbidden characters into our marcxml store.

We'll need to work through the codebase to catch the exception thrown to
give the end user the oportunities to act on the error and fix the data
at source.

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