[Koha-bugs] [Bug 27819] New: Spurious errors when running delete_records_via_leader.pl

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Sat Feb 27 18:24:50 CET 2021


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

            Bug ID: 27819
           Summary: Spurious errors when running
                    delete_records_via_leader.pl
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P5 - low
         Component: Command-line Utilities
          Assignee: koha-bugs at lists.koha-community.org
          Reporter: nick at bywatersolutions.com
        QA Contact: testopia at bugs.koha-community.org
                CC: robin at catalyst.net.nz

The job reports errors when deleting items.

The issue seems to be that Koha::Object->delete claims in the POD to return -1,
0, or 1 as a result, but it in fact returns the Object itself on a successful
deletion

The errors are reported as:
ERROR DELETING ITEM 501740: Koha::Item=HASH(0x55ce407a1a78)

To recreate:
1 - Find or create a record with some items
2 - Ensure those  items can be deleted (not on loan, etc.)
3 - Edit the record leader and set position 5 to 'd'
4 - perl misc/cronjobs/delete_records_via_leader.pl -i -v --confirm
5 - Deletion succeeds, but reports failure on items

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