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
I have a dashboard where I define a settings variable which is a PSCustomObject with some PSCredential variables inside, this is used in the dashboard for some function calls and then sent to a PSUScript using Invoke-PSUScript - the issue I'm having is that this works correctly sometimes (usually after a Dashboard restart) and then randomly fails, it seems like the types get wonky randomly.
I made the following test setup to replicate the issue: Dashboard
I use a ValidateScript parameter in the script to ensure that the credential is passed properly.
As I type this I've clicked the submit button in the dashboard a couple of times where it has randomly succeeded the validation and also failed without me changing anything in the dashboard or the script.
I'm at a loss here, please help :D
Version
5.2.1
Severity
Medium
Hosting Method
MSI (Windows Service)
Operating System
Windows
Database
SQL
Licensed
Yes
Features
No response
Additional Environment data
No response
Screenshots/Animations
No response
The text was updated successfully, but these errors were encountered:
Note that I am actually using a hashtable, not a PSCustomObject as the latter doesn't seem to play nice with splatting but it doesn't change the underlying issue, it seems that often the PSCredentials are delivered as a different type "System.Management.Automation.PSObject" instead of PSCredential which bricks the validation.. I made a function that iterates over my hashtable and casts properties to PSCredential inside the PSUScript before passing it into the function with validation as a hacky solution.
Description of Issue
I have a dashboard where I define a settings variable which is a PSCustomObject with some PSCredential variables inside, this is used in the dashboard for some function calls and then sent to a PSUScript using Invoke-PSUScript - the issue I'm having is that this works correctly sometimes (usually after a Dashboard restart) and then randomly fails, it seems like the types get wonky randomly.
I made the following test setup to replicate the issue:
Dashboard
TestCred.ps1
I use a ValidateScript parameter in the script to ensure that the credential is passed properly.
As I type this I've clicked the submit button in the dashboard a couple of times where it has randomly succeeded the validation and also failed without me changing anything in the dashboard or the script.
I'm at a loss here, please help :D
Version
5.2.1
Severity
Medium
Hosting Method
MSI (Windows Service)
Operating System
Windows
Database
SQL
Licensed
Yes
Features
No response
Additional Environment data
No response
Screenshots/Animations
No response
The text was updated successfully, but these errors were encountered: