Project

General

Profile

Actions

Bug #26031

open

Iterators broken with “File key-value present with option” method

Added by Michel BOUISSOU 17 days ago. Updated 17 days ago.

Status:
New
Priority:
N/A
Assignee:
-
Category:
-
Target version:
-
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
To do
Fix check:
To do
Regression:
No

Description

When using an iterator to add several lines in a file, the compliance output would tend to show that the iterator worked (several lines showing the correct successive iterator values), however the produced file doesn't contains as many lines as should have been generated, and all lines contain the same and last value of the iterator.

Here an iterator is defined to feed several “nameserver” lines in resolv.conf.

The iterator value is defined from a parameter, which value is : 1.1.1.1,8.8.8.8,9.9.9.9

The example technique would be supposed to produce a resolv.conf file containing (at least) :

nameserver 1.1.1.1
nameserver 8.8.8.8
nameserver 9.9.9.9

But we end up with a file containing :

options rotate
nameserver 9.9.9.9
nameserver 9.9.9.9

Although the agent output and compliance display seems to show that the 3 proper repairs have been made. See attached screenshots for technique contents and compliance output.


Files

key_value_iterator_bug_241205a.png (126 KB) key_value_iterator_bug_241205a.png Technique contents Michel BOUISSOU, 2024-12-05 19:11
key_value_iterator_bug_241205c.png (57.9 KB) key_value_iterator_bug_241205c.png Compliance output Michel BOUISSOU, 2024-12-05 19:12
key_value_iterator_bug_241205d.png (9.48 KB) key_value_iterator_bug_241205d.png Resulting file, erroneous contents Michel BOUISSOU, 2024-12-05 19:12
Actions

Also available in: Atom PDF