Project

General

Profile

Actions

Bug #25557

closed

Bug #25428: Update directive variable check constraints on existing values

Spaces as a default value provided by node properties are now refused

Added by François ARMAND 3 months ago. Updated about 2 months 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:
No

Description

Not sure if it's the parent correction that lead to that problem (but likely), but now, in the case where:

- we have a mandatory string parameter, say udp_open_ports (in firewall technique),
- the parameter is given in directive with ${node.properties[udp_open_ports] | default=" "}
- the node doesn't have the property defined,

Then we get the following error:

⇨ Cannot build target configuration node; 
    cause was: Error while computing Node Configuration for nodes: ; 
    cause was: Unexpected: Accumulated: Unexpected: Error with parameters expansion for node 'xxxxxx' (xxxxxx); 
    cause was: Unexpected: Inconsistency: Error for policy for directive 'Firewall' [xxxxx] in rule 'Firewall' [xxxxx]: a non optional value is missing for parameter 'udp_open_ports' [param ID: 3021FC4F-DA33-4D84-8991-C42EBAB2335F] ; 

Subtasks 1 (0 open1 closed)

Bug #25579: System variable can be empty early on the generation processReleasedVincent MEMBRÉActions
Actions #1

Updated by François ARMAND 3 months ago

  • Status changed from New to In progress
Actions #2

Updated by François ARMAND 3 months 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/5906
Actions #3

Updated by Anonymous 3 months ago

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

Updated by François ARMAND 3 months ago

  • Subtask #25569 added
Actions #5

Updated by François ARMAND 3 months ago

  • Subtask #25577 added
Actions #6

Updated by François ARMAND 3 months ago

  • Subtask #25579 added
Actions #8

Updated by Vincent MEMBRÉ about 2 months ago

  • Subtask deleted (#25569)
Actions #9

Updated by Vincent MEMBRÉ about 2 months ago

  • Status changed from Pending release to Released
Actions

Also available in: Atom PDF