[Koha-bugs] [Bug 34293] ILS-DI returns 200 instead of 403 for unauthorized requests
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Mon Jul 17 05:40:07 CEST 2023
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=34293
--- Comment #4 from David Cook <dcook at prosentient.com.au> ---
So I think this might be impossible without removing
Plack::Middleware::ErrorDocument or mounting ilsdi.pl as its own Plack app.
The latter could be doable using the following:
my $ilsdi_app = Plack::App::WrapCGI->new(script =>
"/path/to/script.pl")->to_app;
mount '/opac/ilsdi.pl' => $ilsdi_app;
Plack::App::WrapCGI is what's used under the hood by Plack::App::CGIBin.
The path to script would depend on whether or not it's a DEV_INSTALL, but it
would be doable.
--
But it might not be worth it just to get better HTTP codes...
--
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