Project

General

Profile

Bug #6074

When we have space in classes condition, the technique is no longer displayed in the Tehcnique editor, and we cannot update anymore any techniques

Added by Nicolas CHARLES over 6 years ago. Updated over 4 years ago.

Status:
Rejected
Priority:
1
Category:
Technique editor - API
Target version:
Pull Request:
Severity:
User visibility:
Effort required:
Priority:

Description

If I insert a blank space in the class condition in the technique editor, the generated cfengine code is invalid, and the technique is no longer accessible. When we click on it, it stays blank, and fails to display anything

Logs say

[Sun Jan 04 12:36:44 2015] [error] ERROR: Exception triggered, Unable to parse file /var/rudder/configuration-repository/ncf/50_techniques/technique/technique.cf
[Sun Jan 04 12:36:44 2015] [error] Command '['cf-promises', '-pjson', '-f', u'/var/rudder/configuration-repository/ncf/50_techniques/technique/technique.cf']' returned non-zero exit status 1
<pre>

<pre>
#cf-promises -f /var/rudder/configuration-repository/ncf/50_techniques/technique/technique.cf
/var/rudder/configuration-repository/ncf/50_techniques/technique/technique.cf:24:72: error: Syntax error in context string
      ifvarclass => "linux.directory_check_exists__root_technique_kept. file_check_exists__etc_technique_conf_error";
                                                                       ^
2015-01-05T16:42:59+0100    error: There are syntax errors in policy files
</pre>

Removing the space solves the issue


Related issues

Is duplicate of ncf - Bug #8763: When the conditions contain spaces, they are kept and the generated file is invalidReleasedVincent MEMBRÉActions
#1

Updated by Alexis MOUSSET over 4 years ago

  • Category set to Technique editor - API
#2

Updated by Alexis MOUSSET over 4 years ago

  • Is duplicate of Bug #8763: When the conditions contain spaces, they are kept and the generated file is invalid added
#3

Updated by Alexis MOUSSET over 4 years ago

  • Status changed from New to Rejected

Also available in: Atom PDF