Defect #3028
closed
Misleading parameter in Remove automatic role task
Added by Alena Peterová almost 3 years ago.
Updated almost 2 years ago.
Description
Tested on 11.2.1
When removing an automatic role by organizational structure, the task RemoveAutomaticRoleTaskExecutor contains misleading information - it displays the UID of the removed role in the parameter "Or: Automatic role by attribute" and "Automatic role by tree structure" is empty. It should be the opposite.
Files
- Target version set to 12.2.0
- Target version changed from 12.2.0 to 13.0.0
- Status changed from New to In Progress
- Assignee changed from Peter Štrunc to Tomáš Doischer
- Status changed from In Progress to Needs feedback
- Assignee changed from Tomáš Doischer to Roman Kučera
- % Done changed from 0 to 80
This was interesting because the issue is caused by the way that form attributes are mapped when calling 'formInstance.getMappedAttributeByCode'. The mapping is done by id which is null in this case so the records would always be rewritten. As a result, a wrong form attribute (i. e., the second one, which is the one for the automatic role by attribute) would be used.
I don't think this is generally a problem (let alone one I can fix easily). To fix it here, I added a custom method for getting the form attribute from the form definition directly (which has lower space and time complexity than the original).
PR: https://github.com/bcvsolutions/CzechIdMng/pull/216
@kucerar, can you please give me feedback?
- Status changed from Needs feedback to Resolved
- Assignee changed from Roman Kučera to Tomáš Doischer
- Status changed from Resolved to Closed
Also available in: Atom
PDF