Project

General

Profile

Actions

Bug #11129

closed

Using of two "File ensure key value in parameter list" methods in the same technique causes the second one to report failed if the first one fails.

Added by Hamlyn Mootoo over 7 years ago. Updated over 6 years ago.

Status:
Rejected
Priority:
N/A
Assignee:
-
Category:
Techniques
Target version:
-
Severity:
Major - prevents use of part of Rudder | no simple workaround
UX impact:
User visibility:
Operational - other Techniques | Technique editor | Rudder settings
Effort required:
Priority:
43
Name check:
Fix check:
Regression:

Description

Please see the attached screenshots for the definition of the technique. the directive created from this technique is set to audit mode.

The initial contents of the file (/tmp/test) being operated on is as follows:

options     color=blue height=4 width=5

The result of the agent running is:

A| compliant     test                      File ensure key value pa| /tmp/test          Add key non existing options with value  height=4  in /tmp/test was correct
A| compliant     test                      File ensure key value pa| /tmp/test          Add key non existing options with value  width=5  in /tmp/test was correct

When the contents of the file change to:

options     color=blue height=99 width=5

the result becomes:

A| non-compliant test                      File ensure key value pa| /tmp/test          Add key non existing options with value  height=4  in /tmp/test was not correct
A| non-compliant test                      File ensure key value pa| /tmp/test          Add key non existing options with value  width=5  in /tmp/test was not correct

However, if the contents of the file are:

options     color=blue height=4 width=99

the result becomes:

A| compliant     test                      File ensure key value pa| /tmp/test          Add key non existing options with value  height=4  in /tmp/test was correct
A| non-compliant test                      File ensure key value pa| /tmp/test          Add key non existing options with value  width=5  in /tmp/test was not correct

If the order of the methods that are defined in the technique is exchanged, the behavior is the exact opposite, so it seems that whichever method is listed first, if it fails, makes the status of the second method fail even if it should be successful.


Files


Related issues 2 (0 open2 closed)

Is duplicate of Rudder - Bug #10838: File content (Key/value pair) reports for all entries, even if only one changesRejectedActions
Is duplicate of Rudder - User story #12414: Make reporting work when targeting several time the same item with several generic methodReleasedAlexis MoussetActions
Actions

Also available in: Atom PDF