Project

General

Profile

Defect #3338

Updated by Alena Peterová over 1 year ago

Tested on 13.0.3 

 Steps to reproduce: 
 * enable account protection on a system 
 * a user has a role, which assigns an account (here, the role is "PostgreSQL system tpersonidm2-users" and the system "PostgreSQL system tpersonidm2") 
 !links_to_accounts.png! 
 * run bulk action "Stop managing accounts" on this account 
 !stop_managing_accounts.png! 
 * the AccAccount is removed, but the AccIdentityAccount is not completely removed and still contains links to this object. It is not visible in the "Links to accounts" anymore, but you can see the audit: 
 !audit_AccIdentityAccount.png! 
 * if you try to resave the identity, or run bulk action Recalculate accounts, you get the following error and provisioning doesn't work 
 <pre> 
 org.springframework.orm.jpa.JpaObjectRetrievalFailureException: Unable to find eu.bcvsolutions.idm.acc.entity.AccAccount with id 332c8eff-15bd-4da1-b06a-a9fe1a8170f0; nested exception is javax.persistence.EntityNotFoundException: Unable to find eu.bcvsolutions.idm.acc.entity.AccAccount with id 332c8eff-15bd-4da1-b06a-a9fe1a8170f0 
 .... 
 </pre> 

 My use-case was to stop managing the account without deleting it on the target system. That means I can't remove the role first. I wanted to stop manage the account and remove the role afterwards.

Back