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

TypeParser accepts Variant parameters that are not types.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: PUP 5.2.0
    • Component/s: None
    • Labels:
      None
    • Template:
    • Team:
      Platform Core
    • Story Points:
      1
    • Sprint:
      Platform Core 2017-08-22
    • Method Found:
      Manual Test
    • Release Notes:
      Bug Fix
    • Release Notes Summary:
      In the 4.x function API a definition of a Variant type could accept something that was not a type as a type parameter without raising an error. The Variant type would then not work. This is now detected and an error is reported.
    • QA Risk Assessment:
      No Action
    • QA Risk Assessment Reason:
      Covered by spec tests

      Description

      The TypeParser class, used for parsing parameter types in Ruby dispatchers, allows parameters that are not types. The Puppet evaluator does however check that all parameters
      are types.

      The behavior should be the same for both. It does not make sense for a Variant to accept parameters that are not types.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Zendesk Support