Deleting Last Copy Fails to Create Hold Cancel Notice

Bug #2007591 reported by Bill Erickson
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Evergreen
Fix Released
Undecided
Unassigned
3.9
Fix Released
Undecided
Unassigned

Bug Description

Evergreen 3.10 + Previous Versions

To recreate:

* UPDATE action_trigger.event_definition SET active = TRUE where id = 38;
* Create a bib with one copy
* Check in the new copy so it's targetable
* Place hold on the bib and confirm it targeted
* delete the last/only copy on the bib.
* confirm the new hold has been canceled with cancel cause "1".

1. Note the lack of additional rows in action_trigger.event where event_def = 38.
2. These errors appear in open-ils.trigger_stderr.log

Caught error from 'run' method: Invalid date format: now at /usr/share/perl5/Error.pm line 465.

--

The error comes from attempting to parse the string "now" (as the hold cancel time) as a date string.

Patch en route.

Revision history for this message
Bill Erickson (berick) wrote :
Changed in evergreen:
assignee: Bill Erickson (berick) → nobody
tags: added: pullrequest
Revision history for this message
Katie Greenleaf Martin (kgmspark) wrote :

I tested this on https://bugsquash.mobiusconsortium.org/eg/staff and get the error message "Reason(s) include: This title has hold requests on it that will be canceled if they are not transferred." when I try to delete the last item on a bib that has holds.
(I also confirmed that this is still an issue in our 3.9 installation)

Revision history for this message
Terran McCanna (tmccanna) wrote :

(Noting that the testing failure may be due to an issue on the current test server.)

Changed in evergreen:
assignee: nobody → Mike Rylander (mrylander)
Revision history for this message
Mike Rylander (mrylander) wrote :

Works for me! Committed to master, rel_3_10, and rel_3_9. Thanks, Bill!

Katie, I suspect that, or settings blocking delete of the last copy (which you couldn't have changed because of the test server issue) were stopping you.

Changed in evergreen:
status: New → Fix Committed
assignee: Mike Rylander (mrylander) → nobody
tags: added: signedoff
Changed in evergreen:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.