Bug 16498

Summary: Cannot process uploaded offline circulation file
Product: Koha Reporter: Owen Leonard <oleonard>
Component: CirculationAssignee: Bugs List <koha-bugs>
Status: CLOSED INVALID QA Contact: Testopia <testopia>
Severity: major    
Priority: P5 - low CC: gmcharlt, kyle.m.hall
Version: Main   
Hardware: All   
OS: All   
URL: /cgi-bin/koha/offline_circ/process_koc.pl
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Attachments: Screenshot showing background-job-progress.pl requests

Description Owen Leonard 2016-05-11 13:13:40 UTC
Created attachment 51423 [details]
Screenshot showing background-job-progress.pl requests

I have created an offline circulation file via the Windows application ("Version=1.0	Generator=kocDesktop	GeneratorVersion=1.3" containing checkouts. After uploading the file, both methods of processing the file fail. 

Choosing "Add to offline circulation queue" results in an error:

Can't use an undefined value as an ARRAY reference at /offline_circ/enqueue_koc.pl line 146, <GEN36> line 7.

The error log has:

Use of uninitialized value $command in hash element at /offline_circ/enqueue_koc.pl line 175, <GEN36> line 7.
Can't use an undefined value as an ARRAY reference at /offline_circ/enqueue_koc.pl line 146, <GEN36> line 7.

If I start over and choose the "Apply directly" button instead, the job progress never gets past 0%. Firebug shows a never-ending succession of queries to background-job-progress.pl (see attached screenshot).
Comment 1 Owen Leonard 2016-05-11 13:25:40 UTC
Never mind, my .koc file got munged when I moved it from Windows to my VM.