Actions
Bug #4063
closedThe check of validity of Rudder parameters within variable values is too strict and does not permit spaces
Status:
Released
Priority:
2
Assignee:
Category:
Web - Config management
Target version:
Pull Request:
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
Actions