(Eureka bugfest) Capability/sets with UI-Users resource are not present in the UI
Description
CSP Request Details
CSP Rejection Details
Potential Workaround
Attachments
has to be done before
relates to
Checklist
hideActivity

Yury Barsukou January 17, 2025 at 8:57 AMEdited
Not reproducable on bugfest, ecs and non ecs
Not reproducable on Snapshot, ecs and non ecs
Not reproducable on Dry run 1
During editing of existing role and during creation of a new role
Looks like can be closed

Craig McNally January 16, 2025 at 9:01 PM
it isn’t clear if this is still an issue, or if it just needs to be tested? Can you please chime in here?

Mykola Makhin January 13, 2025 at 11:51 AM
Error in logs (shortening to make sure it fits Jira comments);
2025-01-07T18:14:57.538+0000 [] [] [] [] WARN KafkaConfiguration Failed to process capability event [record: ConsumerRecord(topic = rebf.fs09000000.mgr-tenant-entitlements.capability, partition = 0, leaderEpoch = 0, offset = 362, CreateTime = 1736273677322, serialized key size = 36, serialized value size = 32124, headers = RecordHeaders(headers = [], isReadOnly = false), key = 4332f1cc-3c9e-4711-a806-b359d49f0ea4, value = ResourceEvent(id=null, type=CREATE, tenant=fs09000000, resourceName=Capability, newValue={moduleId=folio_users-11.0.9, moduleType=ui-module, applicationId=app-platform-complete-1.1.19,
…
ava.lang.IllegalStateException: Duplicate key ui-users.reading-room-access.view (attempted merging values f6fd0845-048e-4294-86f3-8a86a3ae8f5a and 0c7f4396-585d-4157-bd9d-a69d825811c0) at java.base/java.util.stream.Collectors.duplicateKeyException(Collectors.java:135) ~[?:?] at java.base/java.util.stream.Collectors.lambda$uniqKeysMapAccumulator$1(Collectors.java:182) ~[?:?] at java.base/java.util.stream.ReduceOps$3ReducingSink.accept(ReduceOps.java:169) ~[?:?] at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1625) ~[?:?] at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509) ~[?:?] at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) ~[?:?] at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921) ~[?:?] at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:?] at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682) ~[?:?] at org.folio.roles.service.permission.FolioPermissionService.upsertNewPermissions(FolioPermissionService.java:92)
…

Mykola Makhin January 10, 2025 at 4:33 PMEdited
Setting back status to In Progress since the issue is still reproducible.
Note: the capabilities are not even present in backend responses now - possibly there is some application missing (?)

Mykola Makhin January 8, 2025 at 11:02 AM
The issue seems to be caused by the problem that is fixed in scope of . There is a new bugfix release of mod-roles-keycloak - 2.0.10 - that includes that fix.
We need to deploy mod-roles-keycloak 2.0.10 to Ramsons Bugfest, and re-entitle the app in order to get the fix.
Details
Details
Assignee

Steps to reproduce:
Log into https://eureka-bugfest-ramsons.int.aws.folio.org/ as an admin user
Go to “Setting” > “Authorization roles”, click on any role
Click “Action” on <role> details pane and select “Edit” option
Click “Select application” button, check all checkboxes and click “Save and close” button
Search for capability/set with resource UI-Users (f.e. use CTRL+F)
Expected result:
Capability/sets with UI-Users resource are displayed in the table
Actual result:
Capability/sets with UI-Users resource are NOT found among other capability/sets
Additional information:
GET request to https://kong-eureka-bugfest-ramsons.int.aws.folio.org/capability-sets?limit=3000 returns appropriate capability sets
GET request to https://kong-eureka-bugfest-ramsons.int.aws.folio.org/capabilities?limit=3000 returns appropriate capabilities
NOT reproducible on https://folio-etesting-snapshot-diku.ci.folio.org/
Currently NOT reproducible on https://eureka-bugfest-ramsons-consortium.int.aws.folio.org/
Some of the other capabilities/sets might also be absent in UI
Note that some of the capabilities in the system are associated with older versions of applications. For example, as of 12/20/2024, there are capabilities associated with the following versions of
app-platform-complete
:"app-platform-complete-1.1.9"
"app-platform-complete-1.0.34"
"app-platform-complete-1.0.0"