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

Building superlist from sublists can fail.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.6.2
    • Component/s: Evaluation
    • Labels:
      None

      Description

      CFE (community) 3.6.1 on RHEL 6.4.

      Imagine a policy which can define sublists under certain conditions, then using:

      <pre>
      "super_list" slist =>

      { "@(list_any_1)", "@(list_unset_1)", "@(list_unset_2)", }

      ,
      policy => "ifdefined";
      </pre>

      to build a super-list. Assume that "list_any_1" is set, but that "list_unset_*" are not set. Then one would expect the contents of "super_list" to be the same as of "list_any_1". But instead, when two or more unset lists are involved, an additional "cf_null" appears in "super_list".

      A demonstrating example policy, "listbug.cf", is attached.

        Attachments

          Activity

            People

            • Assignee:
              a10025 Volker Hilsheimer (Inactive)
              Reporter:
              davidlee David Lee
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Summary Panel