Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-10095

Better error handling for reading task metadata

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: PUP 6.4.5, PUP 6.11.0
    • Component/s: None
    • Labels:
      None
    • Template:
    • Team:
      Bolt
    • Sprint:
      Bolt Kanban
    • Release Notes:
      Not Needed
    • QA Risk Assessment:
      Needs Assessment

      Description

      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.

        Attachments

          Activity

            People

            Assignee:
            cas.donoghue Cas Donoghue
            Reporter:
            cas.donoghue Cas Donoghue
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Zendesk Support