Defect #997
closedCannot delete a role
100%
Description
Trying to delete a role that has been previously used in some request. Request was deleted and role cannot be removed now. See the pictures attached.
Now, when I try to delete the role, we run on 7.8.2 version. When request was deleted, we used 7.7. version, I guess.
Files
Updated by Marcel Poul almost 7 years ago
- Subject changed from Cannor delete a role to Cannot delete a role
Updated by Vít Švanda almost 7 years ago
- Status changed from New to Needs feedback
- Assignee changed from Radek Tomiška to Marcel Poul
- Target version set to Hematite (8.0.0)
I tried:
1. Create role "TestDelete".
2. Assign this role to UserOne.
3. Create request (concept) for assign this role to UserTwo.
4. Delete this request (concept).
5. Unassign this role from UserOne.
6. Delete this role.
Delete of the role "TestDelete" was successfull.
Do you have some complex scenario for simulation this?
Updated by Marcel Poul almost 7 years ago
- Assignee changed from Marcel Poul to Vít Švanda
On Monday I did only the point 6 of your list. Previous points had done either someone else or I, but two week ago so I am not sure about the precise steps. Since we do not have access to DB, we could only use standard GUI features to get to this point that the role cannot be deleted. Please ask Ondra to show you the data in current state and audit log that can show you more than I can read from it.
Updated by Vít Švanda almost 7 years ago
- Status changed from Needs feedback to New
Updated by Vít Švanda almost 7 years ago
- Status changed from New to Needs feedback
- Assignee changed from Vít Švanda to Patrik Stloukal
- Target version changed from Hematite (8.0.0) to Garnet (7.8.3)
Problem is caused when identity is deleted. During this are all role-requests deleted. Connected role-concept was not deleted if concept had filled id of workflow and this process was ended.
- I fixed it and created test for this situation.
- Fix is in develop https://github.com/bcvsolutions/CzechIdMng/commit/7c579b34cbe2b8a9b746ba016a1e297df138d085
- Created test: DefaultIdmIdentityServiceIntegrationTest.testReferentialRoleRequestIntegrity
Patric, please test it.
Updated by Patrik Stloukal almost 7 years ago
- Status changed from Needs feedback to Closed
- % Done changed from 0 to 100
i run tests and tested it even in idm and fix is working fine.
Thank you for this fix.
Updated by Vít Švanda almost 7 years ago
- Assignee changed from Patrik Stloukal to Vít Švanda