Defect #3400
closedError when displaying detail of a role assigned to a technical account (incompatible roles)
100%
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
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
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?
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.
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.
Updated by Alena Peterová over 1 year ago
- Assignee changed from Alena Peterová to Peter Štrunc
LGTM, please merge the pull request :-)
Updated by Peter Štrunc over 1 year ago
- Status changed from Needs feedback to Resolved
- % Done changed from 80 to 100
Merged