-
Notifications
You must be signed in to change notification settings - Fork 919
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
[BUG] ScsiLun.AlternateName data in vcsim is too large for a signed byte #3615
Comments
Howdy 🖐 ninjarobot ! Thank you for your interest in this project. We value your feedback and will respond soon. If you want to contribute to this project, please make yourself familiar with the |
dougm
added a commit
to dougm/govmomi
that referenced
this issue
Nov 19, 2024
dougm
added a commit
that referenced
this issue
Nov 19, 2024
Fixes #3615 Signed-off-by: Doug MacEachern <dougm@broadcom.com>
Thanks for the detailed report @ninjarobot , fix is merged and included in v0.46.2 Can you share which language your client is written in? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The ScsiLun alternate name in newer releases (v0.38.0 and newer) of vcsim contains data that doesn't meet the signed byte size. Here is an example of the data:
Per the vSphere API, this should be an array of

xsd:byte
:An
xsd:byte
is called a byte, but it is actually a signed byte - between -128 and 127 per the XSD spec.To Reproduce
Steps to reproduce the behavior:
docker run --rm -it -p 8989:8989 vmware/vcsim:v0.38.0
WaitForUpdatesEx
SOAP API, as this will return all the inventory, including this malformed data.alternateName
where you'll see the<data>
fields that contain values that overflow thexsd:byte
range.Expected behavior
The
<data>
fields in thealternateName
should fit within the signed byte range of -128 to 127, like this (behavior from v0.37.3):Affected version
vcsim:v0.38.0 up until latest v0.46.0
Additional context
This worked correctly in older versions of vcsim, up until running with docker using this tag:
vmware/vcsim:v0.38.0
, and I suspect this is related to the fix for #3469.The text was updated successfully, but these errors were encountered: