Actions
Bug #9759
closedWhen a variable contains line breaks, the agent (sometimes?) produces invalid JSON
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:
Priority:
43
Name check:
Fix check:
Regression:
Description
Line breaks are not escaped, for example:
"node": { "env[MANPATH PWD PATH]": "",
Updated by Vincent MEMBRÉ about 8 years ago
- Target version changed from 3.1.17 to 3.1.18
Updated by Vincent MEMBRÉ almost 8 years ago
- Target version changed from 3.1.18 to 3.1.19
Updated by Benoît PECCATTE over 7 years ago
- Priority set to 0
Alexis you need to elaborate a bit on this.
Where does this happen, what are the consequences ?
Updated by Alexis Mousset over 7 years ago
It happens when writing json from the agent (into a file or string), and leads to invalid json content.
It may only happen in some cases, here it was with a variable defined from a command output in CFEngine 3.6.5.
Updated by Vincent MEMBRÉ over 7 years ago
- Target version changed from 3.1.19 to 3.1.20
Updated by Vincent MEMBRÉ over 7 years ago
- Target version changed from 3.1.20 to 3.1.21
Updated by Benoît PECCATTE over 7 years ago
Alexis, when does the agent produce a JSON ? And what is its content ?
What reads this JSON (and fails) ?
Updated by Vincent MEMBRÉ over 7 years ago
- Target version changed from 3.1.21 to 3.1.22
Updated by Alexis Mousset over 7 years ago
It's very likely about jinja templating.
Updated by Benoît PECCATTE over 7 years ago
- 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 33
Updated by Vincent MEMBRÉ over 7 years ago
- Target version changed from 3.1.22 to 3.1.23
- Priority changed from 47 to 46
Updated by Vincent MEMBRÉ over 7 years ago
- Target version changed from 3.1.23 to 3.1.24
- Priority changed from 46 to 45
Updated by Vincent MEMBRÉ about 7 years ago
- Target version changed from 3.1.24 to 3.1.25
- Priority changed from 45 to 44
Updated by Vincent MEMBRÉ about 7 years ago
- Target version changed from 3.1.25 to 387
- Priority changed from 44 to 43
Updated by Alexis Mousset about 7 years ago
- Status changed from New to Rejected
Fixed in CFEngine 3.10, closing.
Updated by Vincent MEMBRÉ about 7 years ago
- Target version changed from 387 to 3.1.25
Actions