Jira (PUP-10095) Better error handling for reading task metadata

12 views
Skip to first unread message

Cas Donoghue (JIRA)

unread,
Oct 7, 2019, 6:38:03 PM10/7/19
to puppe...@googlegroups.com
Cas Donoghue created an issue
 
Puppet / Improvement PUP-10095
Better error handling for reading task metadata
Issue Type: Improvement Improvement
Assignee: Cas Donoghue
Created: 2019/10/07 3:37 PM
Priority: Normal Normal
Reporter: Cas Donoghue

When loading task metadata there are some assumptions made about the shape of the data that do not always hold true (especially about hash or iterable objects). When an invalid type is set in the metadata a cryptic error message (typically something like ` no [] for nill class...` can be raised which is hard to troubleshoot. Add some validation to prevent some of these errors especially where it is easy for the user to accidentally give the wrong metadata.

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)
Atlassian logo

Cas Donoghue (JIRA)

unread,
Oct 15, 2019, 10:26:02 AM10/15/19
to puppe...@googlegroups.com
Cas Donoghue updated an issue
Change By: Cas Donoghue
Fix Version/s: PUP 6.4.z

Cas Donoghue (JIRA)

unread,
Oct 15, 2019, 10:27:03 AM10/15/19
to puppe...@googlegroups.com
Cas Donoghue updated an issue
Change By: Cas Donoghue
Release Notes: Bug Fix

Ciprian Badescu (JIRA)

unread,
Nov 14, 2019, 10:07:05 AM11/14/19
to puppe...@googlegroups.com
Ciprian Badescu updated an issue
Change By: Ciprian Badescu
Fix Version/s: PUP 6.11.0

Ciprian Badescu (JIRA)

unread,
Nov 14, 2019, 10:23:03 AM11/14/19
to puppe...@googlegroups.com
Ciprian Badescu updated an issue
Change By: Ciprian Badescu
Release Notes: Bug Fix Not Needed

Ciprian Badescu (JIRA)

unread,
Nov 14, 2019, 10:23:04 AM11/14/19
to puppe...@googlegroups.com
Ciprian Badescu updated an issue
Internal API change, release note is not needed

When loading task metadata there are some assumptions made about the shape of the data that do not always hold true (especially about hash or iterable objects). When an invalid type is set in the metadata a cryptic error message (typically something like ` no [] for nill class...` can be raised which is hard to troubleshoot. Add some validation to prevent some of these errors especially where it is easy for the user to accidentally give the wrong metadata.   

Dorin Pleava (JIRA)

unread,
Jan 8, 2020, 9:53:04 AM1/8/20
to puppe...@googlegroups.com
Dorin Pleava updated an issue
Change By: Dorin Pleava
Fix Version/s: PUP 6.4.z
Fix Version/s: PUP 6.4.5
Reply all
Reply to author
Forward
0 new messages