Browse hold shelf displays deleted copies

Bug #1061622 reported by Steve Callender
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Evergreen
Fix Released
Medium
Unassigned
2.2
Fix Released
Medium
Unassigned
2.3
Fix Released
Medium
Unassigned

Bug Description

Browse hold shelf is showing copies that have been deleted while in a Hold Shelf status. The query used to build the hold shelf list didn't check if the item was deleted or not. I've created a patch to address that.

It can be found at,

http://git.evergreen-ils.org/?p=working/Evergreen.git;a=commit;h=fb2e6756b1f8894128bbdd1b4b6b65739ec140d5

I've patched against Master but the problem appears in 2.0+ up to current.

Steve

Tags: pullrequest
Revision history for this message
Thomas Berezansky (tsbere) wrote :

I would argue that the problem isn't that they show up, but that they were deleted while in that status. And I believe that has been fixed with other code that would at least alert about it and require an override by default.

Revision history for this message
Michael Peters (mrpeters) wrote :

Nice catch, Steve. Cherry picked to my 2.2.2 server and tested. I don't want to blame the patch, but I started getting errors querying the database in the Browse Hold Shelf after applying it. Most of the shelf loads, but about 5 rows stay in "Retrieving..." status after the network errors, but, for what it's worth the deleted copy on the shelf didn't display.

I rolled back to a virgin Holds.pm and didn't have any issues loading the full hold shelf, but, of course my deleted copy was there.

I think Thomas brings up a good point, though. If an item is on the hold shelf it shouldn't be deleted without notifying the patron.

Changed in evergreen:
status: New → Confirmed
importance: Undecided → Medium
Revision history for this message
Michael Peters (mrpeters) wrote :

Confirmed the original bug, however.

Revision history for this message
Steve Callender (stevecallender) wrote :

Thanks for testing Mike. I have it installed on a local 2.2.2 and I cannot duplicate the error you are seeing. Very odd. The change itself should just add a simple extra parameter in the query. It sounds like it might not be needed though anyways.

Although I do come across folks who like to purge their data manually in the database, and a simple change like this would protect the hold shelf list from items that were deleted outside of the normal methods. I understand that it's not something the system really should anticipate or protect against (manual data manipulation) but to some degree there would be a benefit to a change like this.

Steve

Revision history for this message
Mike Rylander (mrylander) wrote :

Merged for great justice. Thanks, Steve!

Changed in evergreen:
status: Confirmed → Fix Committed
Revision history for this message
Ben Shum (bshum) wrote :

Assigning milestones for 2.2 and 2.3 since it looks like it was backported to rel_2_3 and rel_2_2.

Changed in evergreen:
milestone: none → 2.4.0-beta
Ben Shum (bshum)
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.

Other bug subscribers

Remote bug watches

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