Project

General

Profile

Actions

Bug #26249

open

Technique can be created with technique ID starting with a forbidden character

Added by Michel BOUISSOU 13 days ago. Updated 2 days ago.

Status:
Pending release
Priority:
1 (highest)
Category:
Web - UI & UX
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
To do
Fix check:
To do
Regression:
No

Description

If creating a technique with a name starting with a character that will be escaped for generating the technique ID :

- example name : "/etc/hosts Compliance"

Rudder will auto-generate a Technique ID : “_etc_hosts_compliance”

- While displaying a message stating that the 1st character should be alphameric
- Where one cannot edit the Technique ID field as it is generated, but not an entry field.

If the the user goes to another technique in the techniques tree, then back to the usaved draft, the error message is gone and is becomes possible to save the technique with the “invalid” ID.

  • And this technique seems to be usable and to work normally.

Files

tech_id_alphameric_250123a.png (50.8 KB) tech_id_alphameric_250123a.png Error message Michel BOUISSOU, 2025-01-23 18:36
tech_id_underscore_250123b.png (56.4 KB) tech_id_underscore_250123b.png Technique happily created Michel BOUISSOU, 2025-01-23 18:36
clipboard-202501301836-bna6q.png (51.2 KB) clipboard-202501301836-bna6q.png Clark ANDRIANASOLO, 2025-01-30 18:36
Actions #1

Updated by Nicolas CHARLES 6 days ago

  • Assignee set to Clark ANDRIANASOLO
  • Priority changed from To review to 1 (highest)

Ok, there seems to be an error with draft and error management

Actions #2

Updated by Clark ANDRIANASOLO 6 days ago

  • Status changed from New to In progress
Actions #3

Updated by Clark ANDRIANASOLO 6 days ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from Clark ANDRIANASOLO to Vincent MEMBRÉ
  • Pull Request set to https://github.com/Normation/rudder/pull/6154
Actions #4

Updated by Clark ANDRIANASOLO 6 days ago

I am able to reproduce this, the problem also occurs on the name validation (which is subject to additional API validation, so there is no actual problem when saving it) :

Actions #5

Updated by Clark ANDRIANASOLO 2 days ago

  • Status changed from Pending technical review to Pending release
Actions

Also available in: Atom PDF