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

def.json parsing can orphan nodes

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.7.3
    • Component/s: Bootstrap
    • Labels:
      None

      Description

      If there is a def.json file that includes inputs that use bodies defined later it could potentially leave a host orphaned. In my testing I found that including an input in def.json that referenced bodys from the standard library caused bootstrapping, update and failsafe to no longer function. We should probably not parse def.json in C when we are doing those actions.

      <pre>
      /var/cfengine/inputs/custom/inputs/users/init.cf:78:0: error: Undefined body if_repaired with type classes
      </pre>

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                a10040 Kristian Amlie
                Reporter:
                ageorgop Alex Georgopoulos
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Summary Panel