Uploaded image for project: 'CFEngine Community'
  1. CFEngine Community
  2. CFE-2383

cf-promises silently truncates strings in json output

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.10.0, 3.9.2, 3.7.5
    • Component/s: cf-promises
    • Labels:
      None
    • Steps to reproduce:
      Manual steps provided

      Description

      When reading a policy with cf-promises and choosing json (or json-full) as -p argument, the strings longer than around 2048 chars are silently truncated.

      Is the attached example, the output json does not contains the end of the string, and cf-promises output no warning or error message.

      cf and cf-full output formats work well, the issue is specific to json outputs.

        Attachments

          Activity

            People

            • Assignee:
              a10038 jimis (Dimitrios Apostolou)
              Reporter:
              amousset Alexis Mousset
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Summary Panel