Bug 20335

Summary: Stage MARC records for import does not work under Plack
Product: Koha Reporter: Andreas Roussos <arouss1980>
Component: MARC Bibliographic record staging/importAssignee: Bugs List <koha-bugs>
Status: RESOLVED DUPLICATE QA Contact: Testopia <testopia>
Severity: major    
Priority: P5 - low CC: jonathan.druart, mtj
Version: 17.11   
Hardware: All   
OS: Linux   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:

Description Andreas Roussos 2018-03-05 14:31:18 UTC
In a vanilla 17.11.03 installation with Plack enabled, attempting to
stage a MARC record for import fails with a pop-up message that
reads: "Failed to submit form: error".

In intranet-error.log the following information appears:
stage-marc-import.pl: /usr/share/koha/intranet/cgi-bin/tools/stage-marc-import.pl: cannot open input file /tmp/koha_hax_upload/3f11cee01b610984d5dbd6430106d173_koha.mrc: No such file or directory

The permissions of the directory and file above are as follows:
drwxr-xr-x 2 hax-koha hax-koha 4096 Mar  5 16:18 /tmp/koha_hax_upload
-rw-r--r-- 1 hax-koha hax-koha 1058 Mar  5 16:18 /tmp/koha_hax_upload/3f11cee01b610984d5dbd6430106d173_koha.mrc

To reproduce, simply enable Plack in a vanilla 17.11.03 installation,
then go to Home -> Tools -> Stage MARC records for import, browse for
a file, hit the "Upload file" button, and then click the "Stage for
import" button.
Comment 1 Jonathan Druart 2018-03-29 18:40:51 UTC

*** This bug has been marked as a duplicate of bug 15032 ***