Actions
Bug #11251
closedSetting MULTIINSTANCE to false in metadata.xml breaks multivalued section.
Pull Request:
Severity:
Major - prevents use of part of Rudder | no simple workaround
UX impact:
User visibility:
Operational - other Techniques | Technique editor | Rudder settings
Effort required:
Very Small
Priority:
0
Name check:
Fix check:
Regression:
Description
In "metadata.xml":
- Set <MULTIINSTANCE>false</MULTIINSTANCE>
- Make <SECTION name="Test" multivalued="true" etc...
- Only the first section is processed while generating promises from such directive
Expect to process all sections of selected single directive based on such technique.
Updated by Benoît PECCATTE over 7 years ago
- Target version changed from 4.1.7 to 3.1.23
- Severity set to Major - prevents use of part of Rudder | no simple workaround
- User visibility set to Operational - other Techniques | Technique editor | Rudder settings
- Priority changed from 0 to 52
Updated by Vincent MEMBRÉ over 7 years ago
- Target version changed from 3.1.23 to 3.1.24
Updated by Vincent MEMBRÉ about 7 years ago
- Target version changed from 3.1.24 to 3.1.25
- Priority changed from 52 to 50
Updated by Vincent MEMBRÉ almost 7 years ago
- Target version changed from 3.1.25 to 387
- Priority changed from 50 to 49
Updated by Vincent MEMBRÉ almost 7 years ago
- Target version changed from 387 to 4.1.10
Updated by Vincent MEMBRÉ almost 7 years ago
- Target version changed from 4.1.10 to 4.1.11
- Priority changed from 49 to 47
Updated by Vincent MEMBRÉ over 6 years ago
- Target version changed from 4.1.11 to 4.1.12
- Priority changed from 47 to 46
Updated by Vincent MEMBRÉ over 6 years ago
- Target version changed from 4.1.12 to 4.1.13
- Priority changed from 46 to 45
Updated by Benoît PECCATTE over 6 years ago
- Target version changed from 4.1.13 to 411
Updated by Benoît PECCATTE over 6 years ago
- Target version changed from 411 to 4.1.13
Updated by Vincent MEMBRÉ over 6 years ago
- Target version changed from 4.1.13 to 4.1.14
- Priority changed from 45 to 44
Updated by Benoît PECCATTE over 6 years ago
- Target version changed from 4.1.14 to 4.1.15
- Priority changed from 44 to 43
Updated by Nicolas CHARLES about 6 years ago
- Effort required set to Very Small
- Priority changed from 43 to 67
setting to very small for reproducing. we had some issues at some point due to duplicate variables name - could be related
Updated by Vincent MEMBRÉ about 6 years ago
- Target version changed from 4.1.15 to 4.1.16
Updated by Vincent MEMBRÉ about 6 years ago
- Target version changed from 4.1.16 to 4.1.17
Updated by Nicolas CHARLES about 6 years ago
- Status changed from New to Rejected
- Priority changed from 67 to 0
Hi Dmitry,
I cannot reproduce the issue. Here is my tests files:
metadata.xml
<TECHNIQUE name="Multiple sections"> <DESCRIPTION>This technique to multiple section </DESCRIPTION> <BUNDLES> <NAME>multisection</NAME> </BUNDLES> <MULTIINSTANCE>false</MULTIINSTANCE> <TMLS> <TML name="main"/> </TMLS> <TRACKINGVARIABLE> <SAMESIZEAS>MULTIVALUES</SAMESIZEAS> </TRACKINGVARIABLE> <SECTIONS> <SECTION name="Test" multivalued="true"> <INPUT> <NAME>MULTIVALUES</NAME> <DESCRIPTION>multi valued</DESCRIPTION> </INPUT> </SECTION> </SECTIONS> </TECHNIQUE>
main.st file
bundle agent multisection { vars: &MULTIVALUES:{path |"file[&i&][path]" string => "&path&"; }& &TRACKINGKEY:{directiveId |"file[&i&][uuid]" string => "&directiveId&"; }& }
Resulting file, with the values one for Test #1, two for Test #2 and three for Test #3 is
bundle agent multisection { vars: "file[1][path]" string => "one"; "file[2][path]" string => "two"; "file[3][path]" string => "three"; "file[1][uuid]" string => "32377fd7-02fd-43d0-aab7-28460a91347b@@aec180c5-c831-4f56-8d5c-abd61b75991d@@0"; }
I'm rejecting this issue, but feel free to reopen it with a test case that exhibit the issue, so that we can either fix the code, or the documentation
Thank you !
Actions