8000 Broken search of Groups/subgroups in Admin UI · Issue #9435 · keycloak/keycloak · GitHub
[go: up one dir, main page]

Skip to content

Broken search of Groups/subgroups in Admin UI #9435

Closed as not planned
Closed as not planned

Description

@aznamier

Describe the bug

With groups/subgroups configuration, the group searching by name is rendering incorrect results.
Its impossible to select wanted group so it prevents from editing or adding the user to such group.

Version

16.1.0

Expected behavior

I should be able to search for a given group eg: "Manager"
and then I should be able to select it so it can be edited or user can be added to such group.

That was working in <= v15.0.2

Actual behavior

Search is rendering incorrect results, for example:

With this hierarchy of groups with subgroups:
Screen Shot 2022-01-07 at 15 32 49

Searching for: Manager
Renders the list of top level groups, not the group I want to find.
Screen Shot 2022
8000
-01-07 at 15 33 54

This issue also happens on the User/Groups management, making it impossible to add user to a Manager group:
Screen Shot 2022-01-07 at 15 58 25

How to Reproduce?

Create a structure of groups and subgroups, and then search for the subgroup.

Anything else?

No response

Activity

  1. added
    kind/bug
    on Jan 7, 2022
  2. changed the title [-]Broken search of Groups that contain subgroups[/-] [+]Broken search of Groups/subgroups in Admin UI[/+] on Jan 7, 2022
  3. jbpin commented on Jan 17, 2022

    @jbpin
    Contributor

    it's actually a bug in the API itself not only the frontend.

    Searching for a group will only return its subgroup that have subgroup but not direct subgroup...

  4. added
    area/admin/api
    on Jan 27, 2022
  5. JuliusMu commented on Mar 7, 2022

    @JuliusMu

    We are trying to update our Keycloak to Version 16.1.1 and we are having the same issue with the API. If you call the GET groups endpoint you only get the subgroups which have a subgroup itself. Is there another way to get all subgroups? It is completely breaking our own implementation.

  6. crose-adesso commented on Mar 10, 2022

    @crose-adesso

    Hey, we are also trying to upgrade our Keycloak and the Unit Tests are Failing in that particular case. Sending a request to the Keycloak server returns a response with empty subgroups. Please fix this issue because it is crucial for our project...

    Quick look from IntelliJ Debugger:
    grafik

  7. JuliusMu commented on Mar 10, 2022

    @JuliusMu

    I looked closer into this issue and found the pull request which changed the behaviour of the realm/groups Endpoint. PullRequest
    I think its current behaviour is intended. It just returns the groups and subgroups witch contain the search String and not all subgroups anymore. We are now looking into another solution on our end, like request all groups and filtering them ourself or adding the search String to all of our subgroups. If anyone has a better solution I would appreciate that.

  8. jbpin commented on Mar 22, 2022

    @jbpin
    Contributor

    @JuliusMu thank for pointing out the pull request. Unfortunately, it will no help fixing front end nor the search. I'm not sure if the PR must be revert or improved with flag or whatever.
    Can someone from the management team can answer this ticket with intention please ?
    We can find solution on our end but people working on the UI are stuck if I understand correctly.

  9. rmartinc commented on Mar 1, 2023

    @rmartinc
    Contributor

    Hi everybody and sorry for the late response.

    As it's already commented the search for groups was modified intentionally in #8134. Now the search returns only the groups that really fulfill the query condition. IMHO it makes sense (at least more sense than the previous behavior) and, for the moment, we are not going to change this again.

    Regarding the console limitations, the new console is in place and its behavior is completely different. I'm not happy with it so I have filed a new UI issue #17791. The UI team will review it. But my point here is that the current issue is out of date with the new console as user/group assignment is different.

    I'm going to close this and the PR for the moment. Check the group/user behavior in the new console and comment anything in the new issue.

    Regards!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/admin/apikind/bug

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0