[Koha-bugs] [Bug 31042] OVERRIDE_SYSPREF does not work for REST API

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Oct 12 04:09:53 CEST 2022


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

--- Comment #3 from David Cook <dcook at prosentient.com.au> ---
So... that's interesting.

Since %ENV is a global variable, anything we do to it will affect the whole
life of the Starman worker process.

It looks like we're setting $ENV{REMOTE_ADDR} in Koha/Middleware/RealIP.pm so
we're already meddling with that global variable. Since REMOTE_ADDR gets set by
every request, I suppose there's no real problem...

I suppose we could update Koha/Middleware/SetEnv.pm or Koha/REST/V1.pm, to
update %ENV... and folk would need to know they'd need to restart Starman if
they change their RequestHeader directives in Apache...

--

(As an aside, are we actually flushing L1 caches with the REST API? I don't see
anything for it at a glance...)

--

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


More information about the Koha-bugs mailing list