Actions
Bug #20028
closedwe can save a technique with an empty block name - it renders it unusable
Pull Request:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
To do
Fix check:
To do
Regression:
Description
We can save a technique when a block has no name
but then there's a parsing error
[2021-10-01 09:24:47+0200] ERROR techniques.reader - Error with technique at path: '/ncf_techniques/test_with_block/1.0/metadata.xml', it will be ignored. Error: Chained: Couldn't parse Section in test_with_block/1.0 -> test with block for XML: <SECTION reporting="sum" name="" multivalued="true" component="true"> <SECTION name="Command execution" multivalued="true" component="true"> <REPORTKEYS> <VALUE>/bin/true #two</VALUE> </REPORTKEYS> </SECTION> </SECTION>; cause was: Parsing: Section must have name. Missing name for: <SECTION reporting="sum" name="" multivalued="true" component="true"> <SECTION name="Command execution" multivalued="true" component="true"> <REPORTKEYS> <VALUE>/bin/true #two</VALUE> </REPORTKEYS> </SECTION> </SECTION>
it should be forbidden to save a technique with an empty block name
Actions