Skip to content

No schema test on Edge Server#1409

Merged
dpaulson45 merged 1 commit into
mainfrom
dpaul-HcDev
Jan 4, 2023
Merged

No schema test on Edge Server#1409
dpaulson45 merged 1 commit into
mainfrom
dpaul-HcDev

Conversation

@dpaulson45

Copy link
Copy Markdown
Member

Issue:
Customer reported an issue:

Errors that occurred that wasn't handled
Error Index: 0
 : You cannot call a method on a null-valued expression.
Inner Exception:    at System.Management.Automation.ExceptionHandlingOps.CheckActionPreference(FunctionContext funcContext, Exception exception)
   at System.Management.Automation.Interpreter.ActionCallInstruction`2.Run(InterpretedFrame frame)
   at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
   at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
   at System.Management.Automation.Interpreter.Interpreter.Run(InterpretedFrame frame)
   at System.Management.Automation.Interpreter.LightLambda.RunVoid1[T0](T0 arg0)
   at System.Management.Automation.PSScriptCmdlet.RunClause(Action`1 clause, Object dollarUnderbar, Object inputToProcess)
   at System.Management.Automation.PSScriptCmdlet.DoEndProcessing()
   at System.Management.Automation.CommandProcessorBase.Complete()
Position Message: At C:\\HealthChecker.ps1:4460 char:13
+         if ($SecurityObject.OrgInformation.SecurityResults.CVE2021344 ...
+             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Script Stack: at Invoke-AnalyzerSecurityCve-2021-34470, C:\\HealthChecker.ps1: line 4460
at Invoke-AnalyzerSecurityCveCheck, C:\\HealthChecker.ps1: line 5349
at Invoke-AnalyzerSecurityVulnerability, C:\\HealthChecker.ps1: line 5375
at Invoke-AnalyzerEngine, C:\\HealthChecker.ps1: line 5488
at Get-HealthCheckerData, C:\\HealthChecker.ps1: line 12544
at Invoke-HealthCheckerMainReport, C:\\HealthChecker.ps1: line 12615
at <ScriptBlock><End>, C:\\HealthChecker.ps1: line 13345
at <ScriptBlock>, <No file>: line 1
-----------------------------------

Fix:
Make sure we aren't performing this check attempt on an Edge Server.

Validation:
Pester testing

@dpaulson45 dpaulson45 merged commit 18af3a3 into main Jan 4, 2023
@dpaulson45 dpaulson45 deleted the dpaul-HcDev branch January 4, 2023 01:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants