open-ils.actor.container.retrieve_by_class doesn't properly handle missing bucketOwnerId

Bug #2036265 reported by Jason Boyer
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Evergreen
Fix Released
Medium
Unassigned
3.10
Fix Released
Medium
Unassigned
3.12
Fix Released
Medium
Unassigned

Bug Description

Affects all supported versions of Eg.

The comment for open-ils.actor.container.retrieve_by_class claims that if a userid is not sent as the second param that it will use the authtoken to determine the userid. That sounds great, especially if a discovery layer wants to request all of a user's lists and doesn't necessary track the user's id from the ILS. The function takes takes about half of the necessary steps to use the authtoken but trips right at the finish line. Quick branch coming soon.

Jason Boyer (jboyer)
description: updated
Revision history for this message
Jason Boyer (jboyer) wrote :
tags: added: pullrequest
Changed in evergreen:
milestone: none → 3.11.2
Revision history for this message
Jane Sandberg (sandbergja) wrote :

Good catch, and good fix! Thanks, Jason! I exercised this in the srfsh with:

login admin demo123
request open-ils.actor open-ils.actor.container.retrieve_by_class "authtoken", null, "biblio"

Without your patch, it gives me no data. With your patch, it actually gives me some bucket data. Pushed to rel_3_10 and up.

tags: added: signedoff
Changed in evergreen:
importance: Undecided → Medium
status: New → Fix Committed
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.