Actions
Bug #26497
openuser_secondary_groups reporting can conflict with itself when used in foreach loop
Status:
Pending release
Priority:
N/A
Assignee:
Category:
Generic methods
Target version:
Pull Request:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
To do
Fix check:
To do
Regression:
No
Description
The methods promisers are not unique and some states or sub method calls can be non-reevaluated between each method call.
The following techniques will report too many reports for the user_secondary_groups method if not patched:
id: testing_nested_things name: Testing nested things version: '1.0' category: ncf_techniques items: - id: 86add1ca-e0d3-4c03-b8ad-03a2041d8870 name: Configure Users reporting: mode: weighted items: - id: 58d49423-5920-49c4-92d5-764bb6c1a7db name: '' method: user_present params: login: ${user.login} - id: 5a612551-1f98-407e-8008-fe40fb8f6a8e name: '' method: user_shell params: login: ${user.login} shell: ${user.shell} - id: f0168020-afc1-46bf-a34a-3aad338686ae name: '' method: user_secondary_groups params: login: ${user.login} groups: ${item.groups} force: 'false' foreach: - groups: wheel - groups: sudo foreach_name: item foreach: - login: bob shell: /bin/bash - login: alice shell: /bin/zsh foreach_name: user
Updated by Félix DALLIDET 6 days ago
- Status changed from New to In progress
- Assignee set to Félix DALLIDET
Updated by Félix DALLIDET 6 days ago
- Status changed from In progress to Pending technical review
- Assignee changed from Félix DALLIDET to Alexis Mousset
- Pull Request set to https://github.com/Normation/rudder/pull/6231
Updated by Félix DALLIDET 5 days ago
- Status changed from Pending technical review to Pending release
Applied in changeset rudder|f878afc24f2adfc6e816ada47d01e9fd7388501e.
Actions