Group Attribute Search Erroneously returns when searching for nested group #16535
Closed
2 tasks done
Labels
area/storage
Indicates an issue that touches storage (change in data layout or data manipulation)
kind/enhancement
Categorizes a PR related to an enhancement
team/rh-iam
Milestone
Before reporting an issue
Area
storage
Describe the bug
When given a group structure such as
-- group2_a (attr: <group2_test, group2_test>)
-- group2_b
Querying for the attribute
(test, test)
ofgroup1
will correctly returngroup1
Querying for the attribute
(group2_test, group2_test)
will incorrectly returngroup2
as well as both sub groups.Version
confirmed on main branch
Expected behavior
Querying for a sub group should only return that sub group
However, a test was added that checks that the problematic behavior actually does occur. I believe this was added erroneously (by me) and not caught.
`GroupSearchTest:
Actual behavior
Querying for a sub group by attribute should only return that sub group as it's the only one relevant to the search
How to Reproduce?
GET /auth/admin/realms/redhat-external/groups?q=:&first=0&max=20
Anything else?
No response
The text was updated successfully, but these errors were encountered: