Project

General

Profile

Actions

Bug #15575

closed

Avoid duplicating technique category when changing category name

Added by François ARMAND over 1 year ago. Updated over 1 year 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/rudderReleasedNicolas CHARLESActions
Actions #1

Updated by François ARMAND over 1 year ago

  • Status changed from New to In progress
Actions #2

Updated by François ARMAND over 1 year 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
Actions #3

Updated by François ARMAND over 1 year ago

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

Updated by Nicolas CHARLES over 1 year 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

Actions #11

Updated by François ARMAND over 1 year ago

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

Updated by Vincent MEMBRÉ over 1 year ago

  • Status changed from Pending release to Released

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

Actions

Also available in: Atom PDF