[Koha-bugs] [Bug 24719] C4::Context::set_remote_address() prevents file upload for non-Plack Koha

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Feb 25 17:38:42 CET 2020


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

--- Comment #4 from Martin Renvoize <martin.renvoize at ptfs-europe.com> ---
Created attachment 99594
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=99594&action=edit
Bug 24719: Remove use of CGI in C4::Context::set_remote_address()

This patch removes the CGI module usage, as it was causing file upload
problems for scripts like /cgi-bin/koha/tools/stage-marc-import.pl

Test plan:
1. Set koha_trusted_proxies in koha-conf.xml to 1.1.1.1
2. Clear Memcached
3. Try to upload MARCXML file to /cgi-bin/koha/tools/stage-marc-import.pl
4. Note that form below "Upload progress" never appears and errors show
in browser console
5. Apply the patch
6. Try to upload MARCXML file to /cgi-bin/koha/tools/stage-marc-import.pl
7. Note that form appears below "Upload progress"

Signed-off-by: Martin Renvoize <martin.renvoize at ptfs-europe.com>

-- 
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