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

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • None
    • PUP 7.0.0
    • None
    • Bug Fix
    • 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'.
    • 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

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

            Dates

              Created:
              Updated:
              Resolved:

              Zendesk Support