Project

General

Profile

Actions

Bug #24424

open

Technique is disabled when there is a dash in a method condition

Added by Elaad FURREEDAN 8 months ago. Updated 14 days ago.

Status:
New
Priority:
N/A
Assignee:
-
Category:
Web - Technique editor
Target version:
Severity:
Minor - inconvenience | misleading | easy workaround
UX impact:
It bothers me each time
User visibility:
Getting started - demo | first install | Technique editor and level 1 Techniques
Effort required:
Priority:
56
Name check:
To do
Fix check:
To do
Regression:
No

Description

I was trying to create a technique with condition_from_command and command_execution methods.
My condition name from condition_from_command contained some -, I was able to put this condition in command_execution conditions parameters.

When I try to deploy this technique on directive page, this directive was disabled because of an error

2024-03-12 14:42:20+0000 WARN  techniques.writer.rudderc -   -> stderr : ERROR rudderc: 
    |     command: ls /tmp/test-condition
    |     true_codes: '2'
    |     false_codes: '0'
 15 | - id: d92e2aa4-9181-44a6-a9dd-c467b9afa566
    |   ^ items[1]: Invalid condition expression: linux.condition-file-exist_false at line 15 column 5
    |   name: ''
    |   condition: linux.condition-file-exist_false
    |   method: command_execution

Stack backtrace:
   0: <unknown>
   1: <unknown>
   2: <unknown>
   3: <unknown>
   4: <unknown>
   5: <unknown>
   6: <unknown>
   7: <unknown>
   8: <unknown>
   9: <unknown>
  10: __libc_start_main
  11: <unknown>


Related issues 1 (0 open1 closed)

Related to Rudder - Bug #24439: Clicking on technique in technique tree doesn't do anythingReleasedVincent MEMBRÉActions
Actions

Also available in: Atom PDF