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

Rich data is used for serializing symbols even when rich_data is not enabled.

    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:
    • Acceptance Criteria:
      Hide

      The default value should be serialized as:

      {"key":{"__pcore_type__":"Default"}}
      

      only when rich_data is enabled. When disabled, it should be converted to the string "default" with and a warning to that respect should be logged.

      Show
      The default value should be serialized as: {"key":{"__pcore_type__":"Default"}} only when rich_data is enabled. When disabled, it should be converted to the string "default" with and a warning to that respect should be logged.
    • Team:
      Platform Core
    • Story Points:
      1
    • Method Found:
      Manual Test
    • Release Notes:
      Bug Fix
    • Release Notes Summary:
      Hide
      If the special value {{default}} wa used as a value for something being serialized (for example a catalog) the value would end up with rich-data-encoding as a hash instead of being transformed to the string "default". This is now fixed, and a warning or error will be issued depending on the {{strict}} setting.
      Show
      If the special value {{default}} wa used as a value for something being serialized (for example a catalog) the value would end up with rich-data-encoding as a hash instead of being transformed to the string "default". This is now fixed, and a warning or error will be issued depending on the {{strict}} setting.
    • QA Risk Assessment:
      No Action
    • QA Risk Assessment Reason:
      Covered by spec tests

      Description

      When serializing the default value using the ToDataConverter/FromDataConverter pair, the value is serialized as:

      {"key":{"__pcore_type__":"Default"}}
      

      even when rich_data is not enabled.

        Attachments

          Activity

            jsd-sla-details-panel

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Zendesk Support