Bug 33477

Summary: POST /holds/ allows invalid item-level hold if biblio_id and item_id are both specified
Product: Koha Reporter: Emily Lamancusa (emlam) <emily.lamancusa>
Component: REST APIAssignee: Bugs List <koha-bugs>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P5 - low CC: tomascohen
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:

Description Emily Lamancusa (emlam) 2023-04-10 20:12:41 UTC
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
Comment 1 Emily Lamancusa (emlam) 2023-11-28 15:16:16 UTC

*** This bug has been marked as a duplicate of bug 35053 ***