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

Rich data tags __ptype and __pvalue must not be allowed as attribute names

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: PUP 6.0.0
    • Component/s: None
    • Labels:
      None
    • Template:
    • Team:
      Platform Core
    • Method Found:
      Needs Assessment
    • Release Notes:
      Bug Fix
    • Release Notes Summary:
      Attempt to use the reserved attribute names {{__ptype}} and {{__pvalue}} in custom {{Object}} data types will now raise an error instead of producing bad result when serializing such objects.
    • QA Risk Assessment:
      Needs Assessment

      Description

      An attempt to use the rich data tag '__ptype' as the name of an attribute in an Object will cause a failure to serialize that object using the human readable Data format. An Object is represented as a Hash where '__ptype' is supposed to be a String representation of the type and an attribute using the same name causes the type to be overwritten. Use of '__pvalue' will cause a similar confusion when reading the `Object`.

      The special rich data tags'__ptype' and '__pvalue' should not be permitted as names of attributes in an Object.

        Attachments

          Activity

            jsd-sla-details-panel

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: