Project

General

Profile

Actions

Bug #4797

closed

When using multiple times the same generic method on the same object, the reporting will be broken for all of them

Added by Nicolas PERRON almost 10 years ago. Updated almost 2 years ago.

Status:
Rejected
Priority:
N/A
Assignee:
-
Category:
Generic methods
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
Fix check:
Regression:

Description

If I have a MetaTechnique M1 which install a package p1 from a list of packages and a MetaTechnique M2 installing p1 from another list of packages, the reporting will fail.
Indeed, on the Directive from M1, the reporting about p1 will be in "No Answer" state and on the Directive from M2, the reporting about p1 will be in "Unknown state" as it will have 2 reports for the same Directive.
The problem come from the logger_rudder.cf which use getfields which match only the first occurrence of class_prefix and that the class_prefix of M1 and M2 are the same (i.e: package_install_p1).

I suppose that readstringarray should be used in place of getfields.


Related issues 6 (0 open6 closed)

Related to 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
Related to Rudder - Bug #4806: When two techniques generated with ncf-builder use the same generic method with same parameters, reporting cannot dinstinguish them, and reports "Unknown"ReleasedBenoît PECCATTEActions
Related to Rudder - Bug #5389: When two techniques generated with ncf-builder use the same generic method with same parameters, reporting cannot dinstinguish them, and reports "Unknown"ReleasedFrançois ARMAND2015-01-16Actions
Has duplicate Rudder - User story #6369: Run twice the same actionRejectedActions
Has duplicate Rudder - Bug #5534: 2 method calls on the same object produce a confusion in the reportsRejectedActions
Has duplicate Rudder - Architecture #6101: We should be able to call ncf generic methods more than onceRejectedActions
Actions

Also available in: Atom PDF