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:
Click "Users" in "Settings" pane => Click "Permission sets" option under "General" label in "Users" pane
Select any ** tenant option in "Member" dropdown
Click any permission set in the table listing permission sets
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.
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:
Click "Users" in "Settings" pane => Click "Permission sets" option under "General" label in "Users" pane
Select any ** tenant option in "Member" dropdown
Click any permission set in the table listing permission sets
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/