[PUP-9110] Accept and produce ASCII_8BIT as Binary value Created: 2018/09/06  Updated: 2018/10/02  Resolved: 2018/09/26

Status: Closed
Project: Puppet
Component/s: None
Affects Version/s: None
Fix Version/s: PUP 6.0.1

Type: Improvement Priority: Normal
Reporter: Henrik Lindberg Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by PUP-3600 Create support for binary content on ... Closed
Template:
Epic Link: 6.y Rich Data
Team: Platform Core
Release Notes: Known Issue
Release Notes Summary: We did not quite finish the support for the Binary data type in time for 6.0.0. Before you start to use Binary in your manifests for anything except File content, you should be aware of the ticket PUP-9110 as it could introduce changes that may affect you.
QA Risk Assessment: Needs Assessment

 Description   

The Binary data type (PUP-5831) has been around a while but never really been used.
Instead we have accepted ASCII-8BIT strings as values and switching to PSON in the serialization when encountering such values.

The File type has been given support such that it accepts instances of Binary (i.e. Puppet::Pops::Types::PBinaryType::Binary to be precise. Other existing types and providers naturally does not know how to deal with that runtime value and can thus not immediately benefit from rich serialization of a Binary.

To resolve this, the Binary data type should be used in the catalog (rich data is on by default in puppet 6.0.0) but the runtime type on the agent should be changed from the special Binary to simply use ASCII_8BIT encoded String.

See the linked Predocs for a more in depth description.



 Comments   
Comment by Henrik Lindberg [ 2018/09/14 ]

We did not quite finish the support for the Binary data type in time for 6.0.0. Before you start to use Binary in your manifests for anything except File content, you should be aware of the ticket PUP-9110 as it could introduce changes that may affect you.

Comment by Josh Cooper [ 2018/09/26 ]

Passed CI in e2f7ccfb7

Generated at Mon Oct 21 07:55:53 PDT 2019 using JIRA 7.7.1#77002-sha1:e75ca93d5574d9409c0630b81c894d9065296414.