[Koha-bugs] [Bug 25950] REMOTE_ADDR set to null if client_ip in X-Forwarded-For matches a koha_trusted_proxies value

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Apr 21 09:33:40 CEST 2021


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

Jonathan Druart <jonathan.druart at bugs.koha-community.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jonathan.druart at bugs.koha-c
                   |                            |ommunity.org

--- Comment #15 from Jonathan Druart <jonathan.druart at bugs.koha-community.org> ---
Got a random failure, D11 run 265 on Docker_5:

18:04:17 koha_1       | could not parse 2.2.2 at
/kohadevbox/koha/Koha/Middleware/RealIP.pm line 117.
18:04:17 koha_1       | 
18:04:17 koha_1       |     #   Failed test 'Trust proxy (2.2.2.2) using
abbreviated notation, so use the X-Forwarded-For header for the remote address'
18:04:17 koha_1       |     #   at t/Koha/Middleware/RealIP.t line 114.
18:04:17 koha_1       |     #          got: '2.2.2.2'
18:04:17 koha_1       |     #     expected: '1.1.1.1'
18:04:17 koha_1       |     # Looks like you failed 1 test of 3.
18:04:17 koha_1       | 
18:04:17 koha_1       | #   Failed test 'Test alternative configuration styles'
18:04:17 koha_1       | #   at t/Koha/Middleware/RealIP.t line 121.

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


More information about the Koha-bugs mailing list