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

(Regression) RH-SSO 7.6.1 Not able to access resources from authorization permission menu on Openshift

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • RH-SSO-7.6.2
    • RH-SSO-7.6.1
    • OpenShift - xPaaS
    • None
    • False
    • None
    • False
    • -

    Description

      Use case description

      Platform:

      RH-SSO 7.6.1 with ZIP install
      RH-SSO 7.6.1 with Openshift 4.10

       

      The scenario is the following:
      1. Create a client app.
      2. make this client confidential, and enable authorization services.
      3. From the Authorization menu, create 2-3 resources (r1/r2/r3).
      4. from the aithorization permission menu:
      -create a new permission (perm1)
      -browse the resources (expected r1/r2/r3).
       

      Issue on OCP
      On a zip deployment, it is working fine, you can save the permission perm1.
       
      On a OCP deployement, it is searching endlessly (i.e infinite loop), and never returning. You cannot save the permission perm1.
       
      Note:
      THis issue has appeared in 7.6, and it was working in 7.4

      Log trace Openshift (failing)

       
      On OCP The call stack exception is

      TypeError: Cannot read properties of undefined (reading 'length')
      at constructor.<anonymous> (select2.js:1800:34)
      at Object.callback (select2.js:681:22)
      at authz-controller.js:930:31
      at I (angular-resource.js:779:15)
      at angular.js:18013:37
      at m.$digest (angular.js:19180:15)
      at m.$apply (angular.js:19568:13)
      at k (angular.js:13411:36)
      at v (angular.js:13668:7)
      at y.onload (angular.js:13573:9) 'Possibly unhandled rejection: {}'

      In the module select2.js (Line 1800)

      if (data.results.length === 0 && checkFormatter(opts.formatNoMatches, "formatNoMatches"))

      { render("<li class='select2-no-results'>" + evaluate(opts.formatNoMatches, opts.element, search.val()) + "</li>"); return; }

       

       

      Log trace Zip (successuful)

      ON zip (where it is successful), the same line show the following object:

      results
      :
      Array(4)
      0
      :
      h {name: 'Default Resource', type: 'urn:app-jsp:resources:default', owner:

      {…}, ownerManagedAccess: false, _id: '5f7ea99d-a207-430e-b201-89b18a47506d', …}
      1
      :
      h {name: 'r1', owner: {…}

      , ownerManagedAccess: false, displayName: 'resource1', _id: '31955426-4bc8-4332-995c-a776560a7c63', …}
      2
      :
      h {name: 'r2', owner:

      {…}, ownerManagedAccess: false, displayName: 'resource 2', _id: '32810f05-9399-4e31-af9b-0c0abd979933', …}
      3
      :
      h {name: 'r3', owner: {…}

      , ownerManagedAccess: false, displayName: 'resource3', _id: '6f727a14-c5e4-495e-9aa6-2ebad03f7dc8', …}
      $promise
      :
      f {$$state: {…}}
      $resolved
      :
      true
      length
      :
      4
      [[Prototype]]
      :
      Array(0)
      [[Prototype]]
      :
      Object
      constructor
      :
      ƒ Object()
      hasOwnProperty
      :
      ƒ hasOwnProperty()
      isPrototypeOf
      :
      ƒ isPrototypeOf()
      propertyIsEnumerable
      :
      ƒ propertyIsEnumerable()
      toLocaleString
      :
      ƒ toLocaleString()
      toString
      :
      ƒ toString()
      valueOf
      :
      ƒ valueOf()
      {}defineGetter{}
      :
      ƒ {}defineGetter{}()
      {}defineSetter{}
      :
      ƒ {}defineSetter{}()
      {}lookupGetter{}
      :
      ƒ {}lookupGetter{}()
      {}lookupSetter{}
      :
      ƒ {}lookupSetter{}()
      {}proto{}
      :
      (...)
      get {}proto{}
      :
      ƒ {}proto{}()
      set {}proto{}
      :
      ƒ {}proto{}()
       

       

       

       

       

      Attachments

        Activity

          People

            rhn-jlieskov Ján Lieskovský
            rhn-support-orivat Olivier Rivat
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: