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

Bug #4797: 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 12 years ago. Updated about 4 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ÉActions
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 ARMANDActions
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

Updated by Benoît PECCATTE over 10 years ago Actions #1

Updated by Alexis Mousset about 10 years ago Actions #2

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

Updated by Alexis Mousset about 10 years ago Actions #3

  • 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

Updated by Alexis Mousset about 10 years ago Actions #4

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

Updated by Alexis Mousset almost 10 years ago Actions #5

  • Category set to Generic methods

Updated by Alexis Mousset over 9 years ago Actions #6

  • Target version changed from 0.x to master

Updated by Alexis Mousset over 9 years ago Actions #7

  • Status changed from New to Rejected

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

Updated by Alexis Mousset about 4 years ago Actions #8

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

Updated by Alexis Mousset about 4 years ago Actions #9

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

Also available in: PDF Atom