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

join() returns a string with trailing delimiter if the list ends with a null-value

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.6.2
    • Component/s: Built-in functions
    • Labels:
      None

      Description

      Easily reproduced by adding a testcase

      <pre>
      "n" slist =>

      { "a", "b", "c", "cf_null" }

      ;
      </pre>

      to the existing join acceptance test. The resulting string should be @a:b:c@ but will be @a:b:c:@.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Summary Panel