Manage permissions sets through Consortium Manager fails due to different Okapi token

Description

Overview:

When user opens edit page of permission set for particular tenant the following error appears:

ERROR: in module @folio/consortia-settings, operation GET on resource 'availablePermissions' failed, saying: Different tokens in Authentication and X-Okapi-Token. Use only one of them

Issue also can be reproduced via admin account.

Preconditions:

1) Central tenant and at least one member tenants exist

2) Permission sets exist in central and member tenants
note permission sets from each tenant in "Settings" => "Users" => "Permission sets"

3) User Permissions exist in central and member tenants
note total number of User Permissions in *central tenant by going to "Users" => select any User => click "Actions" menu button => "Edit" => Click "User permissions" accordion => click "Add permissions" => Note total number of User Permissions in "Total selected:<number>"

4) User has assigned affiliations in central and member tenants. User doesn't have any other assigned affiliations

5) User has been assigned the following permissions in central tenant:

  • Consortium manager: Can create, edit and remove settings

  • Settings (Users): Can create, edit and remove permission sets

  • Users: Can assign and unassign permissions to users

6) User has been assigned the following permissions in member tenant:

  • Settings (Users): Can create, edit and remove permission sets

7) User is logged in central tenant and opened "Consortium manager" app

Steps to Reproduce:

  1. Click "Users" in "Settings" pane => Click "Permission sets" option under "General" label in "Users" pane

  2. Select any ** tenant option in "Member" dropdown

  3. Click any permission set in the table listing permission sets

  4. Click "Edit" button in the Permission set detailed view form

Expected Results:

"Edit:<name>" form appears with no errors. Earlier added permissions to current permission set are displayed on the page. "Add permission" button opens "Select Permissions" modal with ability to browse and add permissions to permission set.

Actual Results:

Error popup appears, informing about not matching tokens (attachment 1). No earlier added permissions are displayed in "Assigned permissions" accordion. "Add permission" button opens "Select Permissions" modal with NO permissions ("0 permissions found" text and "Total selected: 5" text are displayed) - attachment 2.

Additional Information:
URL: https://folio-dev-rtr-consortium.ci.folio.org/

CSP Request Details

None

CSP Rejection Details

None

Potential Workaround

None

Attachments

3

Checklist

hide

TestRail: Results

Activity

Show:

Polina Ustimenko October 27, 2023 at 12:22 PM

Tested on https://folio-dev-rtr-consortium.ci.folio.org/ environment

Works as expected, no errors

Ann-Marie Breaux October 24, 2023 at 12:13 PM

OK - I'll set as Other, so that it doesn't continue to show as missing a Dev Team. No worries!

Mikita Siadykh October 24, 2023 at 12:09 PM

please do not assign team for issues with RTR label for now

Ann-Marie Breaux October 24, 2023 at 12:06 PM

Hi No dev team on this so I added Thunderjet. Please adjust if that's not correct

Mikita Siadykh October 24, 2023 at 8:14 AM

please check, fix is available on env

Done

Details

Assignee

Reporter

Labels

Priority

Development Team

Other dev

Fix versions

Release

Poppy (R2 2023) Bug Fix

RCA Group

TBD

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs

Created October 23, 2023 at 4:07 PM
Updated December 13, 2023 at 8:57 AM
Resolved October 27, 2023 at 12:22 PM
TestRail: Cases
TestRail: Runs