Actions
Bug #26255
openReporting on user management technique is broken when multiple users are defined in a directive
Status:
Pending release
Priority:
1 (highest)
Assignee:
Category:
Techniques
Target version:
Pull Request:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
To do
Fix check:
To do
Regression:
No
Description
if we try to manage 2 users in a same directive, the reporting is broken, because of this code
"any" usebundle => _method_reporting_context("Users", "${usergroup_user_login[${usergroup_user_index}]}"); "${usergroup_user_login[${usergroup_user_index}]}" usebundle => user_absent("${usergroup_user_login[${usergroup_user_index}]}"), if => "usermanagement_user_remove_${usergroup_user_index}";
method_reporting_context iterate over all user, and get the last value
then the generic method reports with the last entry defined
happens with technique v9.1 and V10
Updated by Nicolas CHARLES 24 days ago
- Assignee set to Alexis Mousset
- Priority changed from To review to 1 (highest)
The only approach would be to wrap the call, like what we do with the technique editor
psudo code would be
methods: "remove_that_user" usebundle => bundle agent user_absent_&UUID&("${usergroup_user_index}") (snip) bundle agent user_absent_&UUID&(usergroup_user_index) "any" usebundle => _method_reporting_context("Users", "${usermanagement_&uuid&.usergroup_user_login[${usergroup_user_index}]}"); "${usergroup_user_login[${usergroup_user_index}]}" usebundle => user_absent("${usermanagement_&uuid&.usergroup_user_login[${usergroup_user_index}]}"), if => "usermanagement_user_remove_${usergroup_user_index}";
Updated by Alexis Mousset 24 days ago
- Status changed from In progress to Pending technical review
- Pull Request set to https://github.com/Normation/rudder-techniques/pull/1861
Updated by Alexis Mousset 24 days ago
- Status changed from Pending technical review to Pending release
Applied in changeset rudder-techniques|368f4dea683d566ac53b8c8634233629b2d76519.
Actions