Project

General

Profile

Actions

Bug #26651

open

Compilation error when iterator key with empty value

Added by Michel BOUISSOU 4 days ago.

Status:
New
Priority:
To review
Assignee:
-
Category:
Web - Technique editor
Target version:
Severity:
Minor - inconvenience | misleading | easy workaround
UX impact:
I was bothered the first time
User visibility:
Operational - other Techniques | Rudder settings | Plugins
Effort required:
Priority:
34
Name check:
To do
Fix check:
To do
Regression:
No

Description

When creating a technique with the new “foreach” iterators, adding a key causes an empty box to appear for this key.
Adding entries with the [+] button while leaving the first box empty will cause a compilation error at save :

« Error when saving technique: error when committing Technique 'internal_iterator_package_installation/1.0'; cause was: Unexpected: Error when trying to compile technique '/var/rudder/configuration-repository/techniques/ncf_techniques/internal_iterator_package_installation/1.0'. Error details are available in `compilation-output.yml` file in the same directory. Error message: 'Exit code=2 for technique: '/var/rudder/configuration-repository/techniques/ncf_techniques/internal_iterator_package_installation/1.0'.' »

Logfile shows :

# cat compilation-output.yml 
compiler: rudderc
resultCode: 2
fileStatus: []
msg: 'Exit code=2 for technique: ''/var/rudder/configuration-repository/techniques/ncf_techniques/internal_iterator_package_installation/1.0''.'
stdout: |2
          Read 204 methods
stderr: |
  ERROR Invalid parameter 'name' in method call '10 - Package present ' for method 'package_present'

  Caused by:
      value must not be empty

  Stack backtrace:
     0: <unknown>
     1: <unknown>
     2: <unknown>
     3: <unknown>
     4: <unknown>
     5: <unknown>
     6: <unknown>
     7: <unknown>
     8: <unknown>
     9: <unknown>
    10: <unknown>
    11: <unknown>
    12: <unknown>
    13: __libc_start_main
    14: <unknown>
  ERROR 1 error(s) were encountered when reading technique

Files

Ierator_error_250329a.png (276 KB) Ierator_error_250329a.png Iterator compilation error Michel BOUISSOU, 2025-03-29 18:09

No data to display

Actions

Also available in: Atom PDF