-
Bug
-
Resolution: Done
-
Major
-
RH-SSO-7.6.1
-
None
-
False
-
None
-
False
-
-
-
-
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:
1
:
h {name: 'r1', owner: {…}
, ownerManagedAccess: false, displayName: 'resource1', _id: '31955426-4bc8-4332-995c-a776560a7c63', …}
2
:
h {name: 'r2', owner:
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{}()