https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42512 --- Comment #2 from Phil Ringnalda <phil@chetcolibrary.org> --- Created attachment 198475 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=198475&action=edit Bug 42512: Pass already checked/cleaned MARC::Record to Metadata Extractor To test: 1 - In Koha testing docker record 369 has invalid xml, otherwise corrupt a record like: sudo koha-mysql kohadev UPDATE biblio_metadata SET metadata = UpdateXML(metadata, '//datafield[@tag="040"]/subfield[@code="c"]',CONCAT('<subfield code',CHAR(27),'="c">OSt</subfield>')) WHERE biblionumber=438; 2 - View the record in the staff client - note bad metadata message http://localhost:8081/cgi-bin/koha/catalogue/detail.pl?biblionumber=438 3 - Click 'Edit' 4 - Error 500, in logs: Invalid data, cannot decode metadata object 5 - Apply patch, restart all 6 - Reload record and click edit 7 - Success! Message about bad metadata, but can edit/save Signed-off-by: Phil Ringnalda <phil@chetcolibrary.org> -- You are receiving this mail because: You are watching all bug changes.