Details
-
Type:
Bug
-
Status: Done
-
Priority:
Low
-
Resolution: Fixed
-
Affects Version/s: 3.10.0, 3.11.0, 3.10.2
-
Component/s: None
-
Labels:
-
Story Points:0
Description
format() will truncate data to 4096 bytes.
string_mustache() can render a data container to a string larger than 4096 bytes.
bundle agent main { vars: "state" data => datastate(); "state_dump" string => format( "%S", state ), unless => isvariable( $(this.promiser) ); "state_dump3" string => string_mustache("{{%-top-}}", state), unless => isvariable( $(this.promiser) ); reports: "format() doesnt match" unless => strcmp( $(state_dump3), $(state_dump) ); "version ${sys.cf_version}"; }
> $ cf-agent -KIf ./datastate.cf R: format() doesnt match R: version 3.11.0
Strings can contain more than 4096 bytes, there is no reason for format() to truncate the strings.
Attachments
Issue Links
- clones
-
CFE-2507 storejson() should not truncate strings larger than 4096 bytes
-
- Done
-