Project

General

Profile

Actions

Bug #7866

closed

Parsing of @parameter does not accept numeric variable names

Added by Janos Mattyasovszky almost 9 years ago. Updated over 2 years ago.

Status:
Released
Priority:
N/A
Category:
Generic methods
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
Fix check:
Regression:

Description

According to cfengine docs, variable names can be alphanumeric and underscore:
"The allowed characters in variable names are alphanumeric (both upper and lower case) and undercore."

However, "parse_bundlefile_metadata" does not match on numbers, just alpha and underscore:

    match = re.match("^\s*#\s*@(\w+)\s(([a-zA-Z_]+)\s+(.*)|.*)$", line, flags=re.UNICODE)

Related issues 1 (0 open1 closed)

Blocks Rudder - Bug #7864: Missing Functions for File-ChecksReleasedAlexis MoussetActions
Actions #2

Updated by Janos Mattyasovszky almost 9 years ago

  • Status changed from New to Pending release
  • % Done changed from 0 to 100
Actions #3

Updated by Jonathan CLARKE almost 9 years ago

  • Blocks Bug #7864: Missing Functions for File-Checks added
Actions #4

Updated by Vincent MEMBRÉ over 8 years ago

  • Status changed from Pending release to Released
Actions #5

Updated by Alexis Mousset over 5 years ago

  • Target version set to 3.1.24
  • Priority set to 0
Actions #6

Updated by Alexis Mousset over 2 years ago

  • Project changed from 41 to Rudder
  • Category set to Generic methods
Actions

Also available in: Atom PDF