Project

General

Profile

Actions

Defect #3400

closed

Error when displaying detail of a role assigned to a technical account (incompatible roles)

Added by Alena Peterová over 1 year ago. Updated about 1 year ago.

Status:
Closed
Priority:
Low
Assignee:
Peter Štrunc
Category:
Roles
Target version:
Start date:
06/21/2023
Due date:
% Done:

100%

Estimated time:
Affected versions:
Owner:
Peter Štrunc

Description

When opening the detail of a role assigned to a technical account, following error is displayed:

The log says:

Jun 21 16:13:13 idmsnt czechidm[997]: 2023-06-21 16:13:13.872  WARN 13240942 --- [http-nio-8080-exec-8] eu.bcvsolutions.idm.core.exception.ExceptionControllerAdvice.log : [core:NOT_FOUND:fb730d76-3ce3-44be-8196-870145d659f4] f8947fdc-d483-4e59-8b2d-d35ede93eafd not found. ({entity=f8947fdc-d483-4e59-8b2d-d35ede93eafd})
Jun 21 16:13:13 idmsnt czechidm[997]: eu.bcvsolutions.idm.core.api.exception.ResultCodeException: f8947fdc-d483-4e59-8b2d-d35ede93eafd not found.
Jun 21 16:13:13 idmsnt czechidm[997]: #011at eu.bcvsolutions.idm.core.rest.impl.IdmIdentityController.getIncompatibleRoles(IdmIdentityController.java:568)
Jun 21 16:13:13 idmsnt czechidm[997]: #011at eu.bcvsolutions.idm.core.rest.impl.IdmIdentityController$$FastClassBySpringCGLIB$$60e1ad50.invoke(<generated>)

The ID f8947fdc-d483-4e59-8b2d-d35ede93eafd is the ID of AccAccount for the technical user.


Files

role_of_tech_account_error.png (68.5 KB) role_of_tech_account_error.png Alena Peterová, 06/21/2023 02:26 PM
roles_of_tech_account.png (94.4 KB) roles_of_tech_account.png Alena Peterová, 06/21/2023 02:26 PM
Actions #1

Updated by Peter Štrunc over 1 year ago

  • Status changed from New to In Progress
  • Assignee set to Peter Štrunc
  • Target version set to 13.0.6
  • Owner set to Peter Štrunc
Actions #2

Updated by Peter Štrunc over 1 year ago

  • Status changed from In Progress to Needs feedback
  • Assignee changed from Peter Štrunc to Alena Peterová
  • % Done changed from 0 to 80

Fixed here: https://github.com/bcvsolutions/CzechIdMng/pull/406

@apeterova could you check it out, please?

Actions #3

Updated by Alena Peterová over 1 year ago

  • Status changed from Needs feedback to In Progress
  • Assignee changed from Alena Peterová to Peter Štrunc

When I display the dashboard for a user who has roles assigned to some other account, I get empty screen and following frontend error:

The above error occurred in the <IdentityRoleTable> component:
in IdentityRoleTable (created by Connect(IdentityRoleTable))
in Connect(IdentityRoleTable) (created by Connect(IdentityRoleTable))
in Connect(IdentityRoleTable) (created by IdentityRoleDashboard)

....

Uncaught TypeError: componentService.getConcepComponentByOwnerType(...) is null
componentDidMount IdentityRoleTable.js:59
React 6

Could you please check it? @sourek

------------------
I tested it on commit b82fb6f083efe7aaab83fb9d433c7628cb2fda66 on branch 13.0.6-LTS.
When I moved 1 commit back (to dabd3ddfaea77b7b3c30152adec266614e2e2467), dashboard was displayed correctly.

Actions #4

Updated by Peter Štrunc over 1 year ago

  • Status changed from In Progress to Needs feedback
  • Assignee changed from Peter Štrunc to Alena Peterová

The issue was caused by the previous refactoring. I fixed it on both pstrunc/3400_incompatible_roles and 13.0.6-LTS. Thanks for the thorough testing.

Actions #5

Updated by Alena Peterová over 1 year ago

  • Assignee changed from Alena Peterová to Peter Štrunc

LGTM, please merge the pull request :-)

Actions #6

Updated by Peter Štrunc over 1 year ago

  • Status changed from Needs feedback to Resolved
  • % Done changed from 80 to 100

Merged

Actions #7

Updated by Peter Štrunc about 1 year ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF