Jira (PUP-3542) Write statefile in JSON

12 views
Skip to first unread message

Andy Parker (JIRA)

unread,
Oct 31, 2014, 2:13:24 PM10/31/14
to puppe...@googlegroups.com
Andy Parker updated an issue
 
Puppet / Improvement PUP-3542
Write statefile in JSON
Change By: Andy Parker
Component/s: DOCS
Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v6.3.7#6337-sha1:2ed701e)
Atlassian logo

Andy Parker (JIRA)

unread,
Oct 31, 2014, 2:14:24 PM10/31/14
to puppe...@googlegroups.com
Andy Parker updated an issue
Change By: Andy Parker
Component/s: Client

Mike Hall (JIRA)

unread,
Feb 28, 2015, 12:27:33 AM2/28/15
to puppe...@googlegroups.com
Mike Hall updated an issue
Change By: Mike Hall
Component/s: DOCS
This message was sent by Atlassian JIRA (v6.3.10#6340-sha1:7ea293a)
Atlassian logo

Josh Cooper (Jira)

unread,
Oct 26, 2020, 2:21:03 PM10/26/20
to puppe...@googlegroups.com
Josh Cooper updated an issue
Change By: Josh Cooper
Fix Version/s: PUP 7.0.0
This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)
Atlassian logo

Josh Cooper (Jira)

unread,
Oct 26, 2020, 2:21:04 PM10/26/20
to puppe...@googlegroups.com
Josh Cooper updated an issue
Change By: Josh Cooper
Team: Night's Watch

Josh Cooper (Jira)

unread,
Oct 26, 2020, 2:24:03 PM10/26/20
to puppe...@googlegroups.com
Josh Cooper updated an issue
Change By: Josh Cooper
Fix Version/s: PUP 5.0.0

Mihai Buzgau (Jira)

unread,
Oct 27, 2020, 2:02:03 AM10/27/20
to puppe...@googlegroups.com
Mihai Buzgau updated an issue
Change By: Mihai Buzgau
Sub-team: ghost

Mihai Buzgau (Jira)

unread,
Oct 27, 2020, 2:02:04 AM10/27/20
to puppe...@googlegroups.com
Mihai Buzgau updated an issue
Change By: Mihai Buzgau
Sprint: ready for triage

Oana Tanasoiu (Jira)

unread,
Oct 28, 2020, 10:17:03 AM10/28/20
to puppe...@googlegroups.com
Oana Tanasoiu updated an issue
Change By: Oana Tanasoiu
Story Points: 3

Oana Tanasoiu (Jira)

unread,
Oct 28, 2020, 10:17:03 AM10/28/20
to puppe...@googlegroups.com
Oana Tanasoiu updated an issue
Change By: Oana Tanasoiu
Sprint: ready for triage ghost-

Florin Dragos (Jira)

unread,
Oct 30, 2020, 10:57:03 AM10/30/20
to puppe...@googlegroups.com
Florin Dragos commented on Improvement PUP-3542
 
Re: Write statefile in JSON

There are some issues with moving the state file from yaml to json format, the biggest one, being the value types. Json does not preserve the types, so if we write a symbol, it will read a string. This is one of the benefits when using yaml. The state file, as well as the transaction file contains strings and symbols for keys, as well for values. With json we can't have this, so it would mean changing a lot of code inside puppet to make it work.

Another option that will read the correct type is marshal, but this has some security concerns, since it can load any arbitrary objects from from file.

At this moment, the only viable option if we want to use json, is to write our own json serialiser (eg. like Microsoft did for the azure sdk - https://github.com/Azure/azure-sdk-for-ruby/blob/master/runtime/ms_rest/lib/ms_rest/serialization.rb ) and save the types, so we can read them back later.

Bogdan Irimie (Jira)

unread,
Nov 2, 2020, 2:34:04 AM11/2/20
to puppe...@googlegroups.com
Bogdan Irimie updated an issue
Change By: Bogdan Irimie
Fix Version/s: PUP 7.0.0

Bogdan Irimie (Jira)

unread,
Nov 4, 2020, 9:11:03 AM11/4/20
to puppe...@googlegroups.com
Bogdan Irimie updated an issue
Change By: Bogdan Irimie
Sprint: ghost-4.11 , PR - Triage 2

Bogdan Irimie (Jira)

unread,
Nov 4, 2020, 9:47:04 AM11/4/20
to puppe...@googlegroups.com
Bogdan Irimie updated an issue
Change By: Bogdan Irimie
Sub-team: ghost

Mihai Buzgau (Jira)

unread,
Nov 10, 2020, 4:34:03 AM11/10/20
to puppe...@googlegroups.com
Mihai Buzgau updated an issue
Change By: Mihai Buzgau
Sprint: ready for triage, ghost-4.11 , ghost-11.11
Reply all
Reply to author
Forward
0 new messages