Project

General

Profile

Bug #15575

Avoid duplicating technique category when changing category name

Added by François ARMAND 3 months ago. Updated 2 months ago.

Status:
Released
Priority:
N/A
Category:
Web - Config management
Target version:
Severity:
User visibility:
Effort required:
Priority:
0

Description

When we change the category name of a technique and then add a technique in the category, it breaks rudder by duplicating the category. Then, technique are plits in directive view.
That's because the name in category.xml is considered to be the category ID.

This ticket PR avoid that by considering the category directory name as an ID (and so the name in category.xml is just a display name).


Related issues

Related to Rudder - Bug #2613: Problem when updating a category name for Technique Management in /var/rudderReleasedActions

Associated revisions

Revision f11988f2 (diff)
Added by François ARMAND 3 months ago

Fixes #15575: Avoid duplicating technique category when changing category name

History

#1

Updated by François ARMAND 3 months ago

  • Status changed from New to In progress
#2

Updated by François ARMAND 3 months ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from François ARMAND to Vincent MEMBRÉ
  • Pull Request set to https://github.com/Normation/rudder/pull/2428
#3

Updated by François ARMAND 3 months ago

  • Status changed from Pending technical review to Pending release
#10

Updated by Nicolas CHARLES 3 months ago

renaming a directory from myUserManagement to myUserManagement2 cause

[root@server systemSettings]# rudder server reload-techniques
error: Could not reload techniques from files
Error: An error occured when updating the Technique library from file system
cause:A category with that name already exists in that category: category names must be unique for a given level

#11

Updated by François ARMAND 3 months ago

  • Related to Bug #2613: Problem when updating a category name for Technique Management in /var/rudder added
#13

Updated by Vincent MEMBRÉ 2 months ago

  • Status changed from Pending release to Released

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

Also available in: Atom PDF