Project

General

Profile

Actions

Bug #4063

closed

The check of validity of Rudder parameters within variable values is too strict and does not permit spaces

Bug #4063: The check of validity of Rudder parameters within variable values is too strict and does not permit spaces

Added by Nicolas CHARLES almost 13 years ago. Updated over 12 years ago.

Status:
Released
Priority:
2
Category:
Web - Config management
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:

Description

this text in a field fails

Welcome to  ${rudder.node.hostname} This node is managed by your Rudder infrastructure The Rudder id of this node is ${rudder.node.id} The policy on this node was last updated on ${sys.last_policy_update} The operating system flavour of this node is ${sys.flavour} The ip addresses configured on this node are ${sys.ip_address}

with the following error

 Can not replace parameters in value 'Welcome to ${rudder.node.hostname} This node is managed by your Rudder infrastructure The Rudder id of this node is 5ee53fbe-ff96-4606-a78b-5e408cbf77c9 The policy on this node was last updated on ${sys.last_policy_update} The operating system flavour of this node is ${sys.flavour} The ip addresses configured on this node are ${sys.ip_address}' because accessors contains spaces

The reason is that the check if the parameter contain space is greedy (class ParametrizedValueLookupService, l 351 )

Changing to non-greedy should solve the issue


Related issues 1 (0 open1 closed)

Related to Rudder - Bug #5743: Use of variable starting with 'rudder' in cfengine variable is forbiddenReleasedFrançois ARMANDActions

Updated by Nicolas CHARLES almost 13 years ago Actions #1

  • Status changed from New to Pending technical review
  • Assignee changed from Nicolas CHARLES to François ARMAND
  • Pull Request set to https://github.com/Normation/rudder/pull/353

Updated by Nicolas CHARLES almost 13 years ago Actions #2

  • Status changed from Pending technical review to Pending release
  • % Done changed from 0 to 100

Updated by Anonymous almost 13 years ago Actions #3

Updated by Nicolas PERRON over 12 years ago Actions #4

  • Subject changed from The check of validity of rudder parameters within variable values is too strict to The check of validity of rudder parameters within variable values is too strict and does not permit spaces

Updated by Nicolas PERRON over 12 years ago Actions #5

  • Subject changed from The check of validity of rudder parameters within variable values is too strict and does not permit spaces to The check of validity of Rudder parameters within variable values is too strict and does not permit spaces

Updated by Nicolas PERRON over 12 years ago Actions #6

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 2.7.6, which was released today.
Check out:

Actions

Also available in: PDF Atom