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

Template rendering should not be done directly on target file

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.6.0
    • Component/s: Promise type: files
    • Labels:
      None
    • Platform:
      Any
    • Found in version (details):
      2014

      Description

      As mentioned in #5289 templates should not be rendered directly on the target file in case of template render failure.

      I have observed when a template fails to completely render we are left with a partially rendered file. I think that templates should be rendered in memory, compared against the target, if different written to a temp file and then moved into the final location.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                a10025 Volker Hilsheimer (Inactive)
                Reporter:
                a10042 Nick Anderson
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Summary Panel