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

Subkeys can be matched by string values that contain the subkey.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: PUP 4.0.0
    • Fix Version/s: PUP 4.4.2
    • Component/s: None
    • Labels:
      None
    • Template:
    • Story Points:
      1
    • Sprint:
      Language 2016-03-23, Language 2016-04-06

      Description

      A subkey of a dotted key can be matched by a string that contains the key. Given the following data (yaml):

      ---
      foo: bar
      

      a lookup of the key 'foo.bar' will produce 'bar'. This happens because the data provider asks if the value responds to :[] and a ruby String will. Then "bar"["bar"] returns "bar".

      ACCEPTANCE CRITERIA


      • that a lookup of foo.bar does not produce 'bar' when the key foo is bound to the string 'bar'

        Attachments

          Issue Links

            Activity

              jsd-sla-details-panel

                People

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

                  Dates

                  • Created:
                    Updated:
                    Resolved: