[Koha-bugs] [Bug 33477] New: POST /holds/ allows invalid item-level hold if biblio_id and item_id are both specified

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Apr 10 22:12:41 CEST 2023


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

            Bug ID: 33477
           Summary: POST /holds/ allows invalid item-level hold if
                    biblio_id and item_id are both specified
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P5 - low
         Component: REST API
          Assignee: koha-bugs at lists.koha-community.org
          Reporter: emily.lamancusa at montgomerycountymd.gov
                CC: tomascohen at gmail.com

To reproduce:

1. Locate or create a bib with multiple items
2. Set one item to type "Reference" and the rest to type "Book"
3. Go to the Circulation and Fines Rules > "Default holds policy by item type"
   section, and add a line specifying No Holds Allowed for Reference item type
4. Attempt to place an item-level hold on the Reference-type item via the REST
API,
   specifying only the parameters:
   patron_id, item_id, and pickup_library_id
5. Confirm expected error message: Hold cannot be placed. Reason: notReservable
6. Attempt to place an item-level hold on the Reference-type item via the REST
API,
   specifying only the parameters:
   patron_id, item_id, biblio_id, and pickup_library_id
7. Observe that an item-level hold has been placed on the Reference-type item,
even
   though it should not be holdable

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