Bug #15640
closedBuilt in File Content technique does not warn about using cfengine variable syntax in file content
Description
When using $(text)
or ${text}
as in the File content part of technique "File content version 8.0", there is no warning about escaping or not using them, otherwise you might hit issue #15167.
Please consider adding an appropriate warning label to each of the affected input fields if this is still applicable.
Suggesting it as Major because it will break the technique with no visible error and no real input that it does not work other than it does not work, and adding a visual information should be quite trivial...
Updated by Janos Mattyasovszky over 5 years ago
- Related to Bug #15167: Invalid detection of empty strings for edition in Techniques added
Updated by Vincent MEMBRÉ about 5 years ago
- Target version changed from 5.0.14 to 5.0.15
Updated by François ARMAND about 5 years ago
- Assignee set to Nicolas CHARLES
- Priority changed from 70 to 69
Adding in the field documentation the warning is easy, and we should defenitly do that. Having a real-time warning based on the input text is not possible right now (we don't know on rudder what are the defined variables on nodes). We could rule out some inputs, thought (like "no . in the variable name").
So for now, step 1: add warning in field documentation.
Updated by Vincent MEMBRÉ about 5 years ago
- Target version changed from 5.0.15 to 5.0.16
- Priority changed from 69 to 67
Updated by Alexis Mousset almost 5 years ago
- Target version changed from 5.0.16 to 5.0.17
- Priority changed from 67 to 65
Updated by Vincent MEMBRÉ over 4 years ago
- Target version changed from 5.0.17 to 5.0.18
- Priority changed from 65 to 63
Updated by Vincent MEMBRÉ over 4 years ago
- Target version changed from 5.0.18 to 5.0.19
- Priority changed from 63 to 59
Updated by Nicolas CHARLES over 4 years ago
- Status changed from New to In progress
Updated by Nicolas CHARLES over 4 years ago
Only does Line replacement regular expressions fail in my test
Updated by Nicolas CHARLES over 4 years ago
- Status changed from In progress to Rejected
Tested on 5.0.17: agent can insert any variable ${} , delete using ${}, replace using ${} without any escaping
I'm rejecting it, feel free to reopen it if you have a use case where it fails