[Koha-bugs] [Bug 29420] 401 Unauthorized pages come back as 200 OK under plack

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Dec 1 02:06:18 CET 2021


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

--- Comment #15 from David Cook <dcook at prosentient.com.au> ---
The ErrorDocument middleware does set up environmental variables prefixed with
"psgix.errordocument" but CGI::Emulate::PSGI strips those out...
https://metacpan.org/dist/CGI-Emulate-PSGI/source/lib/CGI/Emulate/PSGI.pm#L53

So that's annoying.

It's too bad we don't have a Plack-enabled controller for handling these so we
didn't have to emulate the PSGI for CGI scripts, but that's easier said than
done. (I don't have the time/energy for refactoring C4/Templates.pm and
C4/Auth.pm to make things like Bug 26791 or Bug 28325 possible ;).)

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list