[Koha-bugs] [Bug 27555] New: Use psgi_env from errors/* controller scripts

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Jan 27 11:10:08 CET 2021


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

            Bug ID: 27555
           Summary: Use psgi_env from errors/* controller scripts
 Change sponsored?: ---
           Product: Koha
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P5 - low
         Component: Architecture, internals, and plumbing
          Assignee: koha-bugs at lists.koha-community.org
          Reporter: jonathan.druart at bugs.koha-community.org
        QA Contact: testopia at bugs.koha-community.org
        Depends on: 26048

errors/* controller scripts are using
  any { /(^psgi\.|^plack\.)/i } keys %ENV
to know if we are running under psgi.

This is also defined in C4::Auth (psgi_env subroutine), but it's not available
as it is in BEGIN.

We should put this trick in an exportable subroutine to make it accessible from
pl scripts.


Referenced Bugs:

https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26048
[Bug 26048] PSGI Koha does not use custom ErrorDocument pages
-- 
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