Project

General

Profile

Actions

Bug #4674

closed

When modifying a directive based on a meta-technique with multivalued section with same component key, the duplicated component keys are removed

Added by Nicolas CHARLES over 10 years ago. Updated over 10 years ago.

Status:
Released
Priority:
1 (highest)
Assignee:
-
Category:
Web - Compliance & node report
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:

Description

with a metatechnique that has 4 component key identical in a section, for instance

<SECTION component="true" multuvalued="true" name="File replace line">
  <REPORTKEYS>
     <VALUE>${grub.knowledge.fstab_path}</VALUE>
     <VALUE>${grub.knowledge.fstab_path}</VALUE>
     <VALUE>${grub.knowledge.fstab_path}</VALUE>
     <VALUE>${grub.knowledge.fstab_path}</VALUE>
  </REPORTKEYS>
</SECTION>

once loaded in the web interface, it transforms into 4 sections with one key in the Change request screen
When we create the directive, it is fine, but when we update the directive, it becomes

<section name="File replace line">
  <var name="expectedReportKey File replace lines">
    ${grub.knowledge.fstab_path}
  </var>
</section>

and the 3 others sections are dropped (as seen in the change request or event log)

then, report is unknown


Related issues 1 (0 open1 closed)

Is duplicate of Rudder - Bug #5330: When using several times a generic_method on same file with class_prefix based on filename, reports will be in "Unknown" and "No answer" statusReleasedVincent MEMBRÉ2014-07-31Actions
Actions

Also available in: Atom PDF