HomePhorge

(PUP-3355) Skip object creation during PSON parsing
baee7126eca0Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

(PUP-3355) Skip object creation during PSON parsing

The previous commits prevented newer agents from being able to parse
PSON responses from older masters, which use the "short" registered
document type name. For example, the node response message from an older
master contains "document_type":"Node", and the agent would fail to
PSON.parse it, because it no longer registers document types.

This commit removes the logic from the PSON parser for constructing
arbitrary object types, based on document_type or otherwise. This way
the PSON parser just returns safe object types (Hash, Array, or
primitive). If the master's response includes a "data" envelope with
a document_type, it will be returned in the parsed data, and promptly
ignored by the PSON format handler.

Details

Provenance
Josh Cooper <josh@puppetlabs.com>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPUaa5ca737319e: (PUP-3355) Remove Puppet::Util::Pson
Branches
Unknown
Tags
Unknown

Event Timeline

Josh Cooper <josh@puppetlabs.com> committed rPUbaee7126eca0: (PUP-3355) Skip object creation during PSON parsing (authored by Josh Cooper <josh@puppetlabs.com>).Oct 14 2014, 12:47 AM