Skip to content

v1.2.1

Choose a tag to compare

@github-actions github-actions released this 23 Jul 10:31
· 77 commits to master since this release
42ca975

Fixed

  • Clear-PrtgSensorState -MaxAge: the pruned re-export used a hardcoded -Depth 10, silently
    flattening state saved with Save-PrtgSensorState -Depth above that. Clear-PrtgSensorState
    now takes its own -Depth (default 10, matching the previous hardcoded value).
  • Write-PrtgError: a hand-built ErrorRecord (as opposed to one from an actual throw) has a
    $null InvocationInfo; formatting one threw a NullReferenceException instead of emitting
    the PRTG error response. Missing invocation details now render as unknown instead of
    crashing.
  • Get-PrtgSensorState / Save-PrtgSensorState / Clear-PrtgSensorState /
    Use-PrtgCachedResult: a state or cache file corrupted on disk (readable clixml, but with a
    malformed entry) could crash the cmdlet or silently return/store a broken entry. Malformed
    entries (missing Value/Timestamp, or a Timestamp that isn't a DateTime) are now
    dropped, with a warning, instead.

Added

  • Tools/fuzz.ps1: a mutation fuzzer (bit-flip/insert/delete/duplicate) exercising the sensor
    doctor, JSON output pipeline, sensor state store, error output, Invoke-PrtgSensor's
    retry/-DryRun wrapper, and Write-PrtgLog against adversarial and corrupted input. Wired
    into ./tasks.ps1 fuzz and gated on by prepare_release before every release.