[Koha-bugs] [Bug 24574] Broken MARC records cause "invalid data, cannot decode object" on ISBDdetail and MARCdetail pages.

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Jul 22 02:40:04 CEST 2020


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

--- Comment #8 from David Cook <dcook at prosentient.com.au> ---
(In reply to Rudolf Byker from comment #6)
> Another alternative would be to make sure data can be properly decoded
> before storing it in the database. Then you only have to handle the errors /
> check the exceptions in places where MARC records enter the Koha system
> (e.g. bulk imports, Z39.50, maybe there are others). With this approach, you
> can consider any decoding exception for MARC data from the DB to be
> "unchecked", since it should not happen unless there is a bug.

One downside of this is that it doesn't account for third-party tools that work
directly with the database rather than using Koha's import mechanisms.

So I think we should require error-handling everywhere. As Jonathan noted, it
is painful (in our current architecture), but I don't think that's a reason not
to do it.

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