Shelving location ID 1 cannot be modified

Bug #2023314 reported by Galen Charlton
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Evergreen
Fix Released
Medium
Unassigned
3.10
Fix Released
Medium
Unassigned
3.11
Fix Released
Medium
Unassigned

Bug Description

It is impossible to make changes to the shelving location whose ID is 1, e.g., to rename it from 'Stacks' or to change its OPAC visibility. (Short of direct SQL to disable the protect_acl_id_1 rule.)

This is because the patch for bug 827356 went a little too far: while asset.copy_location ID = 1 should never be removed (and perhaps should never have its owner be anything other than the root of the OU hierarchy), there's no functional reasons why other changes to that location should be blocked.

This bug was originally reported by pdinc-support here: https://bugs.launchpad.net/evergreen/+bug/827356/comments/13

Galen Charlton (gmc)
tags: added: cat-locations
Changed in evergreen:
importance: Undecided → Medium
description: updated
description: updated
Revision history for this message
Jason Boyer (jboyer) wrote (last edit ):

This branch allows edits to all of the fields on acpl 1 except owning_lib and deleted: https://git.evergreen-ils.org/?p=working/Evergreen.git;a=shortlog;h=refs/heads/user/jboyer/lp2023314_acpl_1_light_touch / working/user/jboyer/lp2023314_acpl_1_light_touch

Note that in addition to changing the protection level and type the upgrade script ensures that location 1 is owned by the top of the org tree.

tags: added: pullrequest
Changed in evergreen:
status: New → Confirmed
tags: added: admin-pages
Revision history for this message
Susan Morrison (smorrison425) wrote (last edit ):

Testing for bug squashing week, I was able to edit all fields except for the owning library (results in an "update failed" message) and the "Is Deleted?" field (grayed out). Confirmed all other edits carried through as expected.

I have tested this code and consent to signing off on it with my name, Susan Morrison, and my email address, <email address hidden>.

tags: added: signedoff
Bill Erickson (berick)
Changed in evergreen:
milestone: none → 3.12-beta
Jason Boyer (jboyer)
Changed in evergreen:
assignee: nobody → Jason Boyer (jboyer)
Revision history for this message
Jason Boyer (jboyer) wrote :

Pushed to main, rel_3_11, and rel_3_10. Thanks Galen and Susan!

Changed in evergreen:
status: Confirmed → Fix Committed
assignee: Jason Boyer (jboyer) → nobody
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.