https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33047
Bug ID: 33047
Summary: Local cover image fetchers return 500 internal error
when image not available
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: NEW
Severity: minor
Priority: P5 - low
Component: Architecture, internals, and plumbing
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]
Because of an uncaught exception, both catalogue/image.pl and
opac/opac-image.pl return 500 errors when asked to provide the image by
biblionumber for a bib that does not exist.
This is a bit untidy; if the bib does not exist, *image.pl should either return
the default one-pixel image or perhaps a 404, but not the error page.
This normally isn't a huge deal when the local cover images are displayed by
the staff or public catalog, as both of those interfaces inherently only
display bibs that are known to exist.
However, since it is possible for external clients to want to get at local
cover images (e.g., see https://github.com/vufind-org/vufind/pull/2444), better
provision should be made if the client requests the local cover of a
nonexisting bib (e.g., if the bib had been deleted since the last time that the
external client got knowledge of it).
--
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/