Bug 33477 - POST /holds/ allows invalid item-level hold if biblio_id and item_id are both specified
Summary: POST /holds/ allows invalid item-level hold if biblio_id and item_id are both...
Status: RESOLVED DUPLICATE of bug 35053
Alias: None
Product: Koha
Classification: Unclassified
Component: REST API (show other bugs)
Version: Main
Hardware: All All
: P5 - low normal (vote)
Assignee: Bugs List
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-04-10 20:12 UTC by Emily Lamancusa
Modified: 2023-11-28 15:16 UTC (History)
1 user (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Emily Lamancusa 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 2023-11-28 15:16:16 UTC

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