[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
Fri Jan 28 10:29:15 CET 2022


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

--- Comment #21 from Rudolf Byker <rudolfbyker at gmail.com> ---
I'm not sure what changed in the mean time, but we have been hit by this again.

I just want to update what the situation is for a MARC record with an encoding
error:

On the OPAC:

- /cgi-bin/koha/opac-detail.pl : Nicely formatted Koha 500 page, but without
any way to click from here to opac-MARCdetail.pl to see what's wrong.
- /cgi-bin/koha/opac-MARCdetail.pl : No error, and we can see that our place of
publication was Dp3s�sseldorf instead of Düsseldorf, which is a classic
encoding error.

On the intranet:

- /cgi-bin/koha/catalogue/detail.pl : Nicely formatted Koha 500 page, but
without any way to click from here to addbiblio.pl to edit and fix the record.
- /cgi-bin/koha/catalogue/MARCdetail.pl : Same problem. So it's worse than on
the OPAC, where we could at least see the encoding issue.
- /cgi-bin/koha/cataloguing/addbiblio.pl : No error. Here we can edit the
record and fix the problem.

One has to look in `/var/log/koha/rsc/intranet-error.log` to see what went
wrong. This is fine, since the OPAC is public, and we don't want to leak server
errors to the public. Even the intranet is normally not used by developers, so
not showing the error details there is also fine. The error is:

[Tue Jan 25 12:23:21.043483 2022] [cgi:error] [pid 7997] [client
10.248.254.20:46348] AH01215: Invalid data, cannot decode metadata object
(biblio_metadata.id=23549, biblionumber=30739, format=marcxml, schema=MARC21,
decoding_error=':31: parser error : PCDATA invalid Char value 27:
/usr/share/koha/intranet/cgi-bin/catalogue/detail.pl, referer:
https://staff.library.refstudycentre.com/cgi-bin/koha/catalogue/search.pl

It's a bit hard to explain to our librarians that, if they get stuck on
/cgi-bin/koha/opac-detail.pl or /cgi-bin/koha/catalogue/detail.pl that they
need to copy the biblio number from the URL, and then manually reconstruct the
URL for /cgi-bin/koha/cataloguing/addbiblio.pl?biblio=12345 on the intranet
domain, and then fix it there.

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