Bug 15014

Summary: Plack testing -- Import patrons tool -- sample text file link broken
Product: Koha Reporter: HB-NEKLS <gwilliams>
Component: ToolsAssignee: Jonathan Druart <jonathan.druart>
Status: CLOSED FIXED QA Contact: Testopia <testopia>
Severity: major    
Priority: P5 - low CC: f.demians, jonathan.druart, tomascohen
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Bug Depends on:    
Bug Blocks: 15019    
Attachments: Bug 15014: Returns 0 if everything went fine
Bug 15014: Returns 0 if everything went fine
Bug 15014: Returns 0 if everything went fine

Description HB-NEKLS 2015-10-15 14:53:20 UTC
To recreate: 

1. Go to Tools --> Import Patrons
2. Click on the "here" link under notes (Download a starter CSV file with all the columns here.)
3. Note the Internal Server Error for this link http://test-intra.plack.bywatersolutions.com/cgi-bin/koha/tools/import_borrowers.pl?sample=1

That's the old link, right?
Comment 1 Jonathan Druart 2015-10-16 08:58:08 UTC
Will be fixed by

Subject: [PATCH] Bug 15005: Replace $ENV{SCRIPT_NAME} with the hardcoded script paths

*** This bug has been marked as a duplicate of bug 15005 ***
Comment 2 Jonathan Druart 2015-10-16 08:59:37 UTC
No it's not!
Comment 3 Jonathan Druart 2015-10-16 09:04:08 UTC Comment hidden (obsolete)
Comment 4 Josef Moravec 2015-10-23 07:01:16 UTC Comment hidden (obsolete)
Comment 5 Tomás Cohen Arazi 2015-11-04 16:34:02 UTC
Created attachment 44429 [details] [review]
Bug 15014: Returns 0 if everything went fine

Be kind and return 0 if the sample file has been generated correctly.
Otherwise you are a bad guy and you make Plack returns an internal error
(exited nonzero: 1 at /home/vagrant/kohaclone/tools/import_borrowers.pl line 390.)

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Works as expected
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Works as expected here too.
Comment 6 Tomás Cohen Arazi 2015-11-04 16:43:35 UTC
Patch pushed to master.

Thanks Jonathan!
Comment 7 Frédéric Demians 2015-11-29 20:17:17 UTC
This patch has been pushed to 3.20.x, will be in 3.20.6.