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 over 8 years ago. Updated 3 months ago.

Status:
Rejected
Priority:
N/A
Assignee:
-
Category:
Generic methods
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
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 #1

Updated by Benoît PECCATTE over 6 years ago

Actions #2

Updated by Alexis Mousset about 6 years ago

  • Has duplicate Bug #5534: 2 method calls on the same object produce a confusion in the reports added
Actions #3

Updated by Alexis Mousset about 6 years ago

  • Subject changed from If two differents MetaTechniques uses the same action on the same object, the reporting will never be ok to When using multiple times the same generic method on the same object, the reporting will be broken for all of them
Actions #4

Updated by Alexis Mousset about 6 years ago

  • Has duplicate Architecture #6101: We should be able to call ncf generic methods more than once added
Actions #5

Updated by Alexis Mousset about 6 years ago

  • Category set to Generic methods
Actions #6

Updated by Alexis Mousset over 5 years ago

  • Target version changed from 0.x to master
Actions #7

Updated by Alexis Mousset over 5 years ago

  • Status changed from New to Rejected

It will be fixed by the new class prefix in #7155, closing.

Actions #8

Updated by Alexis Mousset 3 months ago

  • Target version changed from master to ncf-1.2
  • Priority set to 0
Actions #9

Updated by Alexis Mousset 3 months ago

  • Project changed from 41 to Rudder
  • Category changed from Generic methods to Generic methods
Actions

Also available in: Atom PDF