Project

General

Profile

Actions

Bug #15575

closed

Avoid duplicating technique category when changing category name

Added by François ARMAND over 4 years ago. Updated over 4 years ago.

Status:
Released
Priority:
N/A
Category:
Web - Config management
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
To do
Fix check:
Error - Fixed
Regression:

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 1 (0 open1 closed)

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 4 years ago

  • Status changed from New to In progress
Actions #2

Updated by François ARMAND over 4 years 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 4 years ago

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

Updated by Vincent MEMBRÉ over 4 years ago

  • Name check changed from To do to Needs change
Actions #5

Updated by Vincent MEMBRÉ over 4 years ago

  • Name check changed from Needs change to To do
Actions #6

Updated by Vincent MEMBRÉ over 4 years ago

  • Fix check changed from To do to Error - Next version
Actions #7

Updated by Vincent MEMBRÉ over 4 years ago

  • Fix check changed from Error - Next version to To do
Actions #8

Updated by Vincent MEMBRÉ over 4 years ago

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

Updated by Vincent MEMBRÉ over 4 years ago

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

Updated by Nicolas CHARLES over 4 years ago

  • Fix check changed from To do to Error - Blocking

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 4 years ago

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

Updated by Vincent MEMBRÉ over 4 years ago

  • Fix check changed from Error - Blocking to Error - Fixed
Actions #13

Updated by Vincent MEMBRÉ over 4 years 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