Actions
Bug #26255
closedReporting on user management technique is broken when multiple users are defined in a directive
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 about 2 months 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 about 2 months ago
- Status changed from New to In progress
Updated by Alexis Mousset about 2 months 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 about 2 months ago
- Status changed from Pending technical review to Pending release
Applied in changeset rudder-techniques|368f4dea683d566ac53b8c8634233629b2d76519.
Updated by Vincent MEMBRÉ 28 days ago
- Status changed from Pending release to Released
This bug has been fixed in Rudder 8.1.12 and 8.2.5 which were released today.
Updated by Elaad FURREEDAN 16 days ago
- Related to Bug #26510: Broken reporting when using userManagement technique with multiple usesr and secondary group added
Actions