Skip to content
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.

[Bug] Incorrect total value returned from authorizeAndFilterReadResponse #55

Closed
medhost-gkersting opened this issue Aug 20, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@medhost-gkersting
Copy link

Describe the bug
When the authorizeAndFilterReadResponse function runs it does a check to determine whether the user access by the hasAccessToResource function. If they do not it removes it rum the array. The return shows a total of 4
"type": "searchset", "total": 4,
But in the entry section there are only 3 records.

Expected behavior
The total should match the number of entries being returned or potentially have another value that shows it.

@medhost-gkersting medhost-gkersting added the bug Something isn't working label Aug 20, 2021
@rsmayda
Copy link
Contributor

rsmayda commented Aug 23, 2021

Thanks for reporting this. We will be adding this to our backlog!

@ssvegaraju
Copy link
Contributor

Hey! Just wanted to update on this: a fix for this has just been merged into mainline! I'm going to go ahead and close this issue for now, but please feel free to reopen or reach out if the issue is not resolved.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants