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

Editing a file containing a line longer than 4096 chars will cause the text to be truncated

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.5.x
    • Labels:
      None

      Description

      If I edit a text file containing a line which is over 4096 chars, the line will get truncated to 4096 chars exactly. This behavior is reproducible and was not present in older versions.

      See the attached test, procedure:

      • Create a file /tmp/longfile.txt containing a line over 4096 chars
      • Run test_verylongline.cf on it
      • Compare the original file and the edited one, the added line is present but the previous existing one is truncated to exactly 4096 chars

      This breaks very badly some configuration files / machine inventories handled by CFEngine.

        Attachments

          Activity

            People

            • Assignee:
              a10025 Volker Hilsheimer (Inactive)
              Reporter:
              Kegeruneku Matthieu CERDA
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: