Jira (PUP-11754) Puppet::Util::Json.load can take in empty string/file

3 views
Skip to first unread message

Aria Li (Jira)

unread,
Feb 6, 2023, 8:02:03 PM2/6/23
to puppe...@googlegroups.com
Aria Li created an issue
 
Puppet / Task PUP-11754
Puppet::Util::Json.load can take in empty string/file
Issue Type: Task Task
Assignee: Unassigned
Created: 2023/02/06 5:01 PM
Priority: Normal Normal
Reporter: Aria Li

Currently, Puppet::Util::Json.load rejects empty string as a JSON file. 

However, an empty string is a valid JSON so Puppet::Util::Json.load should accept an empty string, check for an empty string, and return nil if an empty string is passed in.

Rspec tests may need to be updated or added.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v8.20.11#820011-sha1:0629dd8)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages