Project

General

Profile

Actions

Bug #20710

closed

Creating a technique with a name normalized to generic method id breaks technique editor

Added by Benoît PECCATTE almost 3 years ago. Updated almost 3 years ago.

Status:
Released
Priority:
N/A
Category:
Web - Technique editor
Target version:
Severity:
Major - prevents use of part of Rudder | no simple workaround
UX impact:
User visibility:
Getting started - demo | first install | Technique editor and level 1 Techniques
Effort required:
Priority:
70
Name check:
To do
Fix check:
Checked
Regression:

Description

Create a technique name "User shell", its id is user_shell
Apply it.
Now the technique editor is broken, the generation is broken

To repair it, juste delete the directive


Related issues 1 (0 open1 closed)

Has duplicate Rudder - Bug #12869: If we call a technique with same name as a generic method, policy generation fails because of a duplicate bundle nameRejectedActions
Actions #1

Updated by François ARMAND almost 3 years ago

  • Subject changed from Creating a technique with the wrong name may break the technique editor to Creating a technique with a name normailzed to generic method id breaks technique editor
  • Target version set to 7.0.1
  • Severity set to Major - prevents use of part of Rudder | no simple workaround
  • User visibility set to Getting started - demo | first install | Technique editor and level 1 Techniques
  • Priority changed from 0 to 70

So, the problem is when you use a technique name that is normalized to a generic method id, which causes two bundles to have the same name.

The simplest solution is to know the list of forbiden ID for techniques (ie, in addidion to existing techniques names) and to use a workaround - at minima, an error message "change the name" (like today for same technique names), or perhaps something like happending a number of whatever.

We will target that change in 7.0 even if it also exists in previous version since their is a workaround (even if you must be aware of it) and a lot of things changed in the technique editor in that version.

Actions #2

Updated by François ARMAND almost 3 years ago

  • Subject changed from Creating a technique with a name normailzed to generic method id breaks technique editor to Creating a technique with a name normalized to generic method id breaks technique editor
Actions #3

Updated by Elaad FURREEDAN almost 3 years ago

  • Status changed from New to In progress
  • Assignee set to Elaad FURREEDAN
Actions #4

Updated by Elaad FURREEDAN almost 3 years ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from Elaad FURREEDAN to Vincent MEMBRÉ
  • Pull Request set to https://github.com/Normation/rudder/pull/4173
Actions #5

Updated by Anonymous almost 3 years ago

  • Status changed from Pending technical review to Pending release
Actions #6

Updated by Elaad FURREEDAN almost 3 years ago

  • Fix check changed from To do to Checked
Actions #7

Updated by Vincent MEMBRÉ almost 3 years ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 7.0.1 which was released today.

Actions #8

Updated by Elaad FURREEDAN about 2 years ago

  • Has duplicate Bug #12869: If we call a technique with same name as a generic method, policy generation fails because of a duplicate bundle name added
Actions

Also available in: Atom PDF