Uploaded image for project: 'RH-SSO'
  1. RH-SSO
  2. RHSSO-2252

Backport "UI Policies search is broken" to rh-sso 7.6.3

XMLWordPrintable

      The latest RH-SSO patch version 7.6.1 breaks the search functionality of the administration console; I am unable to correctly create an authz resource from a page that uses ng-select2 component.

      For example, if we try to create a new oidc client resource permission, and we want to configure an existing policy (like the default one), the search box never ends:

      if we debug the issue, the UI receives the response to the request sent to the API:

       
      it means that a result exists but the admin console is not functioning properly. The issue is on /themes/src/main/resources/theme/base/admin/resources/js/authz/authz-controller.js:

       
      it seems that a data.results is expected, but in our RH-SSO source code:
       

      it should be results instead of result. Like https://github.com/keycloak/keycloak/blob/main/themes/src/main/resources/theme/base/admin/resources/js/authz/authz-controller.js#L1015
       
      If I manually modify the code line in my debugger, the search functionality works back again as expected.
       

       

       

            pskopek@redhat.com Peter Skopek
            aollebla@redhat.com Àngel Ollé Blázquez
            Votes:
            3 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: