Project

General

Profile

Actions

Bug #17334

closed

Property name aren't limited to ascii

Added by François ARMAND almost 4 years ago. Updated almost 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:
To do
Regression:

Description

When implementing group properties, we relaxed what was authorized as name for properties from [\-_a-zA-Z0-9]+ to UTF-8 "letters" (symbol included).

This seems to be a bad idea and should be reverted.


Related issues 1 (0 open1 closed)

Related to Rudder - User story #7006: Parameter validation in Rudder should accept rudder variables ( ${ } )ReleasedVincent MEMBRÉActions
Actions #1

Updated by François ARMAND almost 4 years ago

  • Related to User story #7006: Parameter validation in Rudder should accept rudder variables ( ${ } ) added
Actions #2

Updated by François ARMAND almost 4 years ago

  • Status changed from New to In progress
Actions #3

Updated by François ARMAND almost 4 years ago

  • Subject changed from Property name aren't limited to ascii anymore to Property name aren't limited to ascii
  • Target version changed from 6.1.0~beta3 to 5.0.18

Actually, it's as old as rudder. The problem is not in the parser that correctly limit chars, but in the api which is far too lenient.

The good new is that we are sure than no property with a name out of [\-_0-9a-zA-Z] was used in a directive parameter (or other property default etc).
We should either limit the API to the accepted values in directive parameter, or relaxe what is accepted, but both need to be consistant.

Actions #4

Updated by François ARMAND almost 4 years ago

We know that some user use at least latin-15 for property names - and likely they only use these properties for groups and not directive parameters.

Actions #5

Updated by François ARMAND almost 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/2950
Actions #6

Updated by François ARMAND almost 4 years ago

Hum, given what we found, the only correct solution is to relax what is allowed in property names. But I'm not at ease with doing to in a patch release. It can change significantly what was done on nodes/etc.

I think it's better to relax only in 6.1: it goes with other changes on properties and an updated documentation, and it is at least in a minor release.

Actions #7

Updated by François ARMAND almost 4 years ago

  • Target version changed from 5.0.18 to 6.1.0~beta3
Actions #8

Updated by François ARMAND almost 4 years ago

  • Pull Request changed from https://github.com/Normation/rudder/pull/2950 to https://github.com/Normation/rudder/pull/2951
Actions #9

Updated by François ARMAND almost 4 years ago

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

Updated by Vincent MEMBRÉ almost 4 years ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 6.1.0~beta3 which was released today.

Actions

Also available in: Atom PDF