Method "File ensure block in section" of Technique Editor cuts the block to 2047 bytes
Rudder v.3.2.4 - © Normation (prepackaged from http://www.rudder-project.org/apt-3.2/) @ Ubuntu 14.04.3 LTS
- Save the large block (the multipath aliases of /etc/multipath.conf in my case) in Technique Editor. /Save ok. Apply ok./
- Reopen technique, make sure "block:" is now containing the first 2047 bytes. (Improper read buffer?)
Note, the actual variable maximum size in cfengine is 16k (grooved from previous 4k), the buffer must be at least 16k in case of static size.
Although, (at least) the leading spaces are cutten at save time for no reason. I consider file content must be stored "as is". /I'll post later the buggy variable screening in file content techniques, if one was not already posted./
Updated by Alexis Mousset over 6 years ago
The editor issue was fixed since last release (see #8544), and will be fixed in the next minor release. The editor now outputs a warn message and does not let a user expand a field over 2k. The limit should be 16k indeed, and we have opened an issue on CFEngine bucktracker, and we we will probably try to fix it.
About the leading spaces, we also fixed this since last release (see #8228). There will be different constraints for the fields, allowing spaces when needed (file content, etc.)