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
Describe the bug vcsim crashes when govc object.collect is requested with invalid property path which is a property of an array property.
To Reproduce
Steps to reproduce the behavior:
run vcsim whthout any arguments
run commands below (note that config.hardware.device is an array and its properties cannot be obtained by this form)
# obtain vm's config.hardware.device, which is an array (this works as expected)
$ govc object.collect /DC0/vm/DC0_H0_VM0 config.hardware.device
config.hardware.device []types.BaseVirtualDevice ...
# try to obtain its property
$ govc object.collect /DC0/vm/DC0_H0_VM0 config.hardware.device.backing
Expected behavior
vcsim responds the InvalidProperty error.
Describe the bug
vcsim
crashes whengovc object.collect
is requested with invalid property path which is a property of an array property.To Reproduce
Steps to reproduce the behavior:
vcsim
whthout any argumentsconfig.hardware.device
is an array and its properties cannot be obtained by this form)Expected behavior
vcsim responds the InvalidProperty error.
Affected version
Screenshots/Debug Output
vcsim crashes by panic and govc responds EOF.
$ govc object.collect /DC0/vm/DC0_H0_VM0 config.hardware.device.backing govc: Post "https://127.0.0.1:8989/sdk": EOF
Additional context
The text was updated successfully, but these errors were encountered: