Defect #1276
closedCannot manually link account
100%
Description
Version 8.1.7
After we manually create an account - "Accounts in system", this created account cannot be found afterwards with the "Internal server error". So this account can't be linked to any identity/role/...
Error in log:
org.springframework.dao.InvalidDataAccessApiUsageException: The given id must not be null!; nested exception is java.lang.IllegalArgumentException: The given id must not be null!
Related issues
Updated by Radek Tomiška about 6 years ago
- Related to Task #1247: Info components - optimize number of request to backend added
Updated by Alena Peterová about 6 years ago
Workaround - if we need to link account, we can do it by synchronization of one account (using custom filter).
Updated by Radek Tomiška about 6 years ago
- Status changed from New to Needs feedback
- Assignee changed from Radek Tomiška to Ondřej Kopr
- Target version set to Moonstone (9.1.1)
- % Done changed from 0 to 90
I overlooked accounts, which is not linked to an entity, when #1247 was implemented. I've added missing check for the filled entity id and type into accounts and audits.
Commit:
https://github.com/bcvsolutions/CzechIdMng/commit/a67a03bca550af0aa8da78ee3b690c64b00b9ac5
Could you do a feedback, pls?
Updated by Ondřej Kopr about 6 years ago
- Status changed from Needs feedback to Resolved
- Assignee changed from Ondřej Kopr to Radek Tomiška
- % Done changed from 90 to 100
Thanks, broken record now works correctly. And it is possible create account without identity.
Updated by Radek Tomiška about 6 years ago
- Status changed from Resolved to Closed
Updated by Alena Peterová almost 6 years ago
Note that the same exception occurs when an identity is manually deleted and the system has account protection. The account of the deleted identity stays in the "Accounts in system", but since the link to the identity doesn't exist, it can't be found in GUI.
If the identity is created again, the account will be again linked to it, but stays in the protection.