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

Added by Nicolas CHARLES about 11 years ago. Updated about 11 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 ARMAND2014-11-06Actions
Actions

Also available in: Atom PDF