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
When a client script uses a variable with the same name used in a ValidationScript that references other parameters by name, the validation can cause a false positive, because PowerShell will see the client's script variable in the validation script.
An example of this is when calling Update-ApplicationFlightSubmission sending required parameters and specifying the "-Force" switch without specifying the SubmissionId parameter, but the client script defines a $SubmissionId variable:
At this moment, the validation script for Update-ApplicationFlightSubmission will fail because it expects NOT to see a variable called $submissionId, which is now visible since the client script defined it.
This is fixed by moving the validation from the Validation Script to the function body for any ValidationScript that references other parameters.
This is confirmed to happen in Update-ApplicationFlightSubmission, but this should be changed in any ValidationScript code.
The text was updated successfully, but these errors were encountered:
When a client script uses a variable with the same name used in a ValidationScript that references other parameters by name, the validation can cause a false positive, because PowerShell will see the client's script variable in the validation script.
An example of this is when calling Update-ApplicationFlightSubmission sending required parameters and specifying the "-Force" switch without specifying the SubmissionId parameter, but the client script defines a $SubmissionId variable:
$submissionId = "123456..";
Update-ApplicationFlightSubmission -Force;
At this moment, the validation script for Update-ApplicationFlightSubmission will fail because it expects NOT to see a variable called $submissionId, which is now visible since the client script defined it.
This is fixed by moving the validation from the Validation Script to the function body for any ValidationScript that references other parameters.
This is confirmed to happen in Update-ApplicationFlightSubmission, but this should be changed in any ValidationScript code.
The text was updated successfully, but these errors were encountered: