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

UI Policies search is broken

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.
       

       

       

              jkoops@redhat.com Jon Koops
              aollebla@redhat.com Àngel Ollé Blázquez
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: