[Koha-bugs] [Bug 33967] REMOTE_ADDR incorrect in plack.log when run behind a proxy

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Jun 9 08:49:44 CEST 2023


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

David Cook <dcook at prosentient.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #152229|0                           |1
        is obsolete|                            |

--- Comment #4 from David Cook <dcook at prosentient.com.au> ---
Created attachment 152230
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=152230&action=edit
Bug 33967: Add unit test to ensure SetEnv doesn't compromise $env

This patch includes a unit test which checks the memory address
of the $env hashref in middlewares before and after
Koha::Middleware::Env is applied.

It succeeds when the same $env is maintained before and after
this middleware. It fails if the $env has been overwritten with
a new hashref (as evidenced by the new memory address for the
hash).

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


More information about the Koha-bugs mailing list