[Koha-bugs] [Bug 20564] Error 500 displays when uploading patron images with a zipped file
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Sat Aug 11 07:09:02 CEST 2018
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20564
Saiful Amin <saiful at semanticconsulting.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |saiful at semanticconsulting.c
| |om
--- Comment #15 from Saiful Amin <saiful at semanticconsulting.com> ---
(In reply to Nick Clemens from comment #12)
> Created attachment 76807 [details] [review]
> Bug 20564: Don't use system to unzip files
>
> To test:
> 1 - Setup a zip file for patron images and cover images
> 2 - Test each tool
> 3 - Get a '500 error' after upload (note images do upload and attach)
> 4 - Apply patch
> 5 - Restart all the things
> 6 - Test agtain, uploads should complete and results display
This is great patch, except for a typo.
It worked only after I changed this line in tools/picture-upload.pl [17.11.5]:
qx/unzip $filename -d $dirname/;
with this:
qx/unzip $tempfile -d $dirname/;
The patch can be modified accordingly before it can be signed off.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list