Project

General

Profile

Actions

Bug #7866

closed

Parsing of @parameter does not accept numeric variable names

Added by Janos Mattyasovszky about 8 years ago. Updated almost 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 about 8 years ago

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

Applied in changeset commit:71b3c48bc6563aa366e6a42d3cc2fab4cb14b650.

Actions #3

Updated by Jonathan CLARKE about 8 years ago

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

Updated by Vincent MEMBRÉ over 7 years ago

  • Status changed from Pending release to Released
Actions #5

Updated by Alexis Mousset almost 5 years ago

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

Updated by Alexis Mousset almost 2 years ago

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

Also available in: Atom PDF