You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
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 $nullInvocationInfo; 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.