]> git.koha-community.org Git - koha.git/commit
Bug 33047: Return 404 instead of 500 when biblio does not exist
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 11 May 2023 13:49:08 +0000 (15:49 +0200)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Tue, 18 Jul 2023 09:28:24 +0000 (10:28 +0100)
commitcf31471089e856010c511dc585dfe4a6a62a38f2
tree59aaaec7aa2a3d60452535e354f1f7663c93f40b
parent62930d543308eb54ce30d245ff7d659c20348924
Bug 33047: Return 404 instead of 500 when biblio does not exist

If the biblionumber or the itemnumber passed in parameter does not
exist we should return 404 instead of exploding with a 500.

Test plan:
Attach cover images to biblio and items
Notice that the UI is working correctly (staff and OPAC)
Hit catalogue/image.pl and opac/opac-image.pl with non-existent
biblionumber and imagenumber
Notice that you now get 404 instead of 500

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 5f43478512a884243bb56f8eac2d8b4dc8211d96)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
catalogue/image.pl
opac/opac-image.pl