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

TypeCalculator instance_of? does not consider String type values.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: PUP 3.8.1, PUP 4.1.0
    • Component/s: None
    • Labels:
      None
    • Template:
    • Story Points:
      1
    • Sprint:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Zendesk Support