(ECS) 404 errors for a user with an admin role in all tenants in role detailed view in Member tenants

Description

Preconditions:

  1. User is logged in https://folio-etesting-snapshot-consortium.ci.folio.org/ as a user having admin role assigned in all tenants

Steps to reproduce:

  1. Switch affiliation to any Member tenant (f.e., “college“)

  2. Go to “Settings“ → “Authorization roles“

  3. Click on the name of any existing role in the second pane

Expected result:
Role detailed view is opened in the third pane, and contains “Capability sets“, “Capabilities“ accordions. Accordions can be expanded and then capabilities/sets will be shown. No failed requests in DevTools.

Actual result:
Role detailed view is opened in the third pane, and contains “Capability sets“, “Capabilities“ accordions. Accordions can be expanded and then capabilities/sets will be shown.

In DevTools, the following API calls are failing with 404 status (see screencast):

  • GET /roles/bf91ebc1-8ca2-41bb-a71c-427bc8f8e6fc/capability-sets?limit=5000

  • GET /roles/bf91ebc1-8ca2-41bb-a71c-427bc8f8e6fc/capabilities?limit=5000&query=cql.allRecords%3D1+sortby+resource&expand=true

Response body is:

{ "errors": [ { "message": "Unable to find org.folio.roles.domain.entity.RoleEntity with id bf91ebc1-8ca2-41bb-a71c-427bc8f8e6fc", "type": "EntityNotFoundException", "code": "not_found_error", "parameters": [] } ], "total_records": 1 }

Additional info:

  • NOT reproducible on Central ECS tenant, as well as on non-ECS tenant

  • Also reproducible when viewing Member roles in “Consortium manager” in Central tenant

  • See example:

 

CSP Request Details

None

CSP Rejection Details

None

Potential Workaround

None

Attachments

7
  • 05 Nov 2024, 12:41 PM
  • 04 Nov 2024, 08:26 AM
  • 01 Nov 2024, 10:53 AM
  • 01 Nov 2024, 10:53 AM
  • 01 Nov 2024, 10:53 AM
  • 01 Nov 2024, 10:53 AM
  • 01 Nov 2024, 10:53 AM

Web links

Checklist

hide

Activity

Show:

Yauhen Viazau November 5, 2024 at 12:44 PM

- please set the RCA group

Yauhen Viazau November 5, 2024 at 12:43 PM

Tested on https://folio-etesting-snapshot-consortium.ci.folio.org/ - works as expected Check Mark

Authorization roles can be opened for view on Member tenants, no 404 responses in DevTools. See examples:

 

Mikita Siadykh November 5, 2024 at 10:56 AM

could you please verify, changes should be available on last etesting versions

Mikita Siadykh November 4, 2024 at 8:36 AM

thanks for confirming, no, it’s still need to be fixed (actually PR is prepared), but if functionality is not impacted possibly priority should be changed (but up to you, I don’t insist as fix is almost on ready stage)

Yauhen Viazau November 4, 2024 at 8:26 AM
Edited

- Sorry for not mentioning it specifically. Yes, capabilities/sets are displayed as expected in role detailed view, edit view. Capability/set selection can be edited and saved.

image-20241104-082518.png

You can close the ticket if you believe the 404s that we are seeing are acceptable, or remove the extra calls.

Done

Details

Assignee

Reporter

Tester Assignee

Priority

Sprint

Development Team

Thunderjet

Fix versions

RCA Group

Implementation coding issue

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs
Created November 1, 2024 at 10:53 AM
Updated January 28, 2025 at 1:50 PM
Resolved November 5, 2024 at 12:44 PM
TestRail: Cases
TestRail: Runs

Flag notifications