(Eureka bugfest) Capability/sets with UI-Users resource are not present in the UI

Description

Steps to reproduce:

  1. Log into https://eureka-bugfest-ramsons.int.aws.folio.org/ as an admin user

  2. Go to “Setting” > “Authorization roles”, click on any role

  3. Click “Action” on <role> details pane and select “Edit” option

  4. Click “Select application” button, check all checkboxes and click “Save and close” button

  5. 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:

 

CSP Request Details

None

CSP Rejection Details

None

Potential Workaround

None

Attachments

11

Checklist

hide

Activity

Show:

Yury Barsukou January 17, 2025 at 8:57 AM
Edited

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 PM
Edited

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.

Done

Details

Assignee

Reporter

Priority

Story Points

Sprint

Development Team

Eureka

Fix versions

Release

Ramsons (R2 2024) Bug Fix

RCA Group

Incomplete/missing requirements

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs
Created December 10, 2024 at 3:50 PM
Updated January 17, 2025 at 9:03 AM
Resolved January 14, 2025 at 2:39 PM
TestRail: Cases
TestRail: Runs