Actions
Bug #19865
closedTechnique editor allows empty technique name
Status:
Released
Priority:
N/A
Assignee:
Category:
Web - Technique editor
Target version:
Pull Request:
Severity:
Critical - prevents main use of Rudder | no workaround | data loss | security
UX impact:
User visibility:
Getting started - demo | first install | Technique editor and level 1 Techniques
Effort required:
Small
Priority:
109
Name check:
To do
Fix check:
To do
Regression:
Description
In 7.0.0~beta1 I was able to create a technique via the technique editor without setting its name. This was forbidden in prior versions.
It resulted in a technique in the wrong folder:
root@server:/var/rudder/configuration-repository/techniques/ncf_techniques# tree /var/rudder/configuration-repository/techniques/ncf_techniques/1.0/ /var/rudder/configuration-repository/techniques/ncf_techniques/1.0/ ├── metadata.xml ├── rudder_reporting.cf ├── technique.cf ├── technique.json ├── technique.ps1 └── technique.rd 0 directories, 6 files
Here is the json of the technique:
{ "bundle_name":"", "version":"1.0", "category":"ncf_techniques", "description":"", "name":"", "method_calls":[ { "condition":"my_condition", "component":"My bigger block", "reportingLogic":{ "type":"worst" }, "calls":[ { "condition":"abcd", "component":"My inner block", "reportingLogic":{ "type":"sum" }, "calls":[], "id":"565097b9-f3e7-469f-b397-2d0e4e4d60b9" } ], "id":"757dc295-5739-4e5c-ad72-ae7587cf675f" } ], "parameter":[], "resources":[] }
Actions