Project

General

Profile

Actions

Bug #23169

closed

Value of a technique parameter is not asked when we create a directive

Added by Elaad FURREEDAN over 1 year ago. Updated over 1 year ago.

Status:
Rejected
Priority:
N/A
Assignee:
-
Category:
Web - UI & UX
Target version:
Severity:
Critical - prevents main use of Rudder | no workaround | data loss | security
UX impact:
I hate Rudder for that
User visibility:
First impressions of Rudder
Effort required:
Priority:
98
Name check:
To do
Fix check:
To do
Regression:
Yes

Description

How to reproduce

1. Create a technique with a parameter, use this parameter in a method (for example command_execution: touch ${file_name})
2. create a directive of this technique, in the tab "parameter" it should ask the value of the parameters, but it is empty:


Files

Actions #1

Updated by Elaad FURREEDAN over 1 year ago

Metadata file

<TECHNIQUE name="create file with var">
  <DESCRIPTION/>
  <USEMETHODREPORTING>true</USEMETHODREPORTING>
  <MULTIINSTANCE>false</MULTIINSTANCE>
  <POLICYGENERATION>separated</POLICYGENERATION>
  <AGENT type="cfengine-community">
    <BUNDLES>
      <NAME>create_file_with_var</NAME>
    </BUNDLES>
    <FILES>
      <FILE name="technique.cf">
        <INCLUDED>true</INCLUDED>
      </FILE>
    </FILES>
  </AGENT>
  <AGENT type="dsc">
    <BUNDLES>
      <NAME>CreateFileWithVar</NAME>
    </BUNDLES>
    <FILES>
      <FILE name="technique.ps1">
        <INCLUDED>true</INCLUDED>
      </FILE>
    </FILES>
  </AGENT>
  <SECTIONS>
    <SECTION name="Command execution" id="6a407c89-ed50-4885-93b4-758ebd0d48f4" component="true" multivalued="true">
      <REPORTKEYS>
        <VALUE id="6a407c89-ed50-4885-93b4-758ebd0d48f4">
          touch ${file_name}
        </VALUE>
      </REPORTKEYS>
    </SECTION>
  </SECTIONS>
</TECHNIQUE>

Yaml file:

id: create_file_with_var
name: create file with var
version: '1.0'
items:
  - id: 6a407c89-ed50-4885-93b4-758ebd0d48f4
    name: ''
    method: command_execution
    params:
      command: touch ${file_name}
category: ncf_techniques
params:
  - id: 224d16c9-9278-4949-be13-dbeacf3f5f3c
    name: file_name
    may_be_empty: true

Actions #2

Updated by Elaad FURREEDAN over 1 year ago

  • Status changed from New to Rejected

It seems to be ok, I was not testing in 8.0-nightly

Actions

Also available in: Atom PDF