Details
-
Bug
-
Status: Closed
-
Normal
-
Resolution: Fixed
-
None
-
None
-
None
-
Agent
-
3
-
Agent 2017-06-14, Agent 2017-06-28
-
Needs Assessment
-
New Feature
-
If the server compiles a catalog, and it contains binary data, typically as a result of inlining a file into the catalog using `content => file("/path/to/file")`, then the server will transfer the catalog as PSON instead of JSON.
-
Automate
Description
If the catalog contains binary content, then the master won't be able to serialize it to json, generating an HTTP 500 error. To make it easy to migrate to Puppet 5, the master should detect when there is an encoding error when serializing the catalog, and downgrade to pson. It should also emit the correct mime-type.
The agent should still be able to cache the catalog (as PSON), and later load the catalog and apply, e.g. puppet agent -t --use_cached_catalog.
This issue is blocking puppetdb tests because they verify binary file content transfer from agent to server to puppetdb.
Attachments
Issue Links
- relates to
-
PUP-7681 acceptance: add test ensuring PSON catalog sent if it contains binary data
-
- Closed
-