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

TypeCalculator instance_of? does not consider String type values.

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Done
    • None
    • PUP 3.8.1, PUP 4.1.0
    • None
    • None
    • 1
    • Language 2015-05-13

    Description

      The TypeCalculator.instance_of? method for PStringType only checks if the incoming object is a String and if it's size is compliant with the size_type. It does not check if the type has values and, if so, if the given string is one of them. This check must be added.

      QA


      risk: medium
      probability: medium (instance_of? on string values)
      severity: medium (could produce incorrect result)
      test level: unit

      Attachments

        Issue Links

          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