Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-7843

The list of reserved type names known to the parser validator is incomplete

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: PUP 7.0.0
    • Component/s: None
    • Labels:
    • Template:
      PUP Bug Template
    • Team:
      Coremunity
    • Method Found:
      Manual Test
    • Release Notes:
      Bug Fix
    • Release Notes Summary:
      Hide
      A class or defined type in top scope can no longer be named 'init', 'object', 'sensitive', 'semver', 'semverrange', 'string', 'timestamp', 'timespan' or 'typeset' since those defined within core puppet. Those names can continue to be used in other scopes such as 'mymodule::object'.
      Show
      A class or defined type in top scope can no longer be named 'init', 'object', 'sensitive', 'semver', 'semverrange', 'string', 'timestamp', 'timespan' or 'typeset' since those defined within core puppet. Those names can continue to be used in other scopes such as 'mymodule::object'.
    • QA Risk Assessment:
      Needs Assessment

      Description

      The Checker4_0 class, used for validating the AST produced by the puppet parser, keeps a list named RESERVED_TYPE_NAMES. This list is incomplete. It lacks the following entries:

          'init' => true,
          'object' => true,
          'sensitive' => true,
          'semver' => true,
          'semverrange' => true,
          'string' => true,
          'timestamp' => true,
          'timespan' => true,
          'typeset' => true,
      

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            thomas.hallgren Thomas Hallgren
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Zendesk Support