Details
-
Bug
-
Status: Closed (View Workflow)
-
P1
-
Resolution: Done
-
None
-
-
Prokopovych - Sprint 116, Prokopovych - Sprint 117, Prokopovych - Sprint 118
-
5
-
Prokopovych
-
R1 2021 Hot Fix #3
-
Yes
-
Need to create Test Rail test case to cover this.
-
Cornell, MO State
Description
Update: Approved as R1 2021 Hot Fix at Capacity Planning Team meeting on May 17, 2021. Need to create Test Rail test case to cover this.
Overview:
The edge-patron /patron/account endpoint has an optional parameter, includeCharges, that is meant to retrieve an array of charges as part of the response. However, with includeCharges=true, the call to /patron/account fails if the user has one or more charges not linked to an item record.
Steps to Reproduce:
- Log into folio-snapshot as diku_admin (or another user with sufficient permissions to assign fees/fines)
- Go to the Users app and choose any active user
- In the Actions menu, choose 'Create fee/fine'
- Enter any fee/fine owner, type, and amount. Do not enter any item information.
- Click Charge only to create the new fine.
- Using Postman, curl, or your REST client of choice, attempt to retrieve the patron record with includeCharges set – i.e., GET /patron/account/<user ID>?includeCharges=true.
Expected Results: The API returns a 200 response with the patron account object in the body, with an array including information about the fine created in step 4.
Actual Results: The response is 404 Not Found.
Additional Information: This can be demonstrated to relate to the lack of item information attached to the loan using two tests:
- Remove the includeCharges parameter, and the request succeeds
- Restore includeCharges, remove the previously created fine, and add a new fine with item record information specified. The request succeeds again.
Interested parties: Cornell (I discovered this issue while converting our patron account display to pull data from FOLIO.)
TestRail: Results
Attachments
Issue Links
- duplicates
-
MODPATRON-40 Unexpected responses from GET /patron/account/<id> WRT the includeCharges query arg
-
- Closed
-
- is cloned by
-
MODPATRON-62 Account lookup returns wrong accrual date for fines/fees
-
- Closed
-
- relates to
-
MODPATRON-65 Release mod-patron 4.4.1
-
- Closed
-
-
MODPATRON-62 Account lookup returns wrong accrual date for fines/fees
-
- Closed
-