Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GlobalSettings.GlobalSettings_Update metod error #589

Open
Po-temkin opened this issue Aug 23, 2022 · 0 comments
Open

GlobalSettings.GlobalSettings_Update metod error #589

Po-temkin opened this issue Aug 23, 2022 · 0 comments
Labels

Comments

@Po-temkin
Copy link

Po-temkin commented Aug 23, 2022

Describe the bug

If i set only propetry "reauthSecureTunnelAfterInterruption"

Exception on call  "GlobalSettings_Update" with "1" arguments: "There is an error in the XML document."
string:3 character:1
+ $ViewAPI.GlobalSettings.GlobalSettings_Update($MapEntry)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : InvalidOperationException

If i trying to set others

Exception on call "GlobalSettings_Update" with "1" arguments: "ExceptionType : VMware.Hv.InvalidArgument
ErrorMessage : Cannot update member with read-only fields.
ParameterName : securityData"
string:3 character:1
+ $ViewAPI.GlobalSettings.GlobalSettings_Update($MapEntry)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : VimException

Reproduction steps

$ViewServer = Connect-HVServer -server $fqdn -user $user -password $pass -domain $domain
$ViewAPI = $ViewServer.ExtensionData

$GlobalSettingsSecurityData = New-Object VMware.Hv.GlobalSettingsSecurityData -Property @{reauthSecureTunnelAfterInterruption=$false}
$MapEntry = New-Object VMware.Hv.MapEntry -Property @{Key='securityData';Value=$GlobalSettingsSecurityData}
$ViewAPI.GlobalSettings.GlobalSettings_Update($MapEntry)

Expected behavior

Metod succesfully update Global Security settings.

Additional context

Horizon Connection Server 8.6.0 build - 20099816

@Po-temkin Po-temkin added the bug label Aug 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant