Werk #19901 · Apr 29, 26
vsphere: fix login failure when password contains non-ASCII characters
The vSphere special agent failed to authenticate against vCenter when the
configured password contained non-ASCII characters such as §. vCenter
rejected the request with HTTP 500 and the agent reported:
Cannot login to vSphere Server (...). Please check the credentials.
even though the same credentials worked in the vCenter Web UI.
The SOAP envelope was sent as a Python str, which the requests library
encodes as latin-1, while the request's Content-Type header declared
charset="utf-8". vCenter parsed the body as UTF-8 and rejected the
mismatched bytes.
The agent now encodes the SOAP body as UTF-8 to match the declared charset, so non-ASCII characters in passwords (and usernames) round-trip correctly.
Details
- Class:
- Bug Fixes
- Level:
- Trivial
- Component:
- Checks
- Versions:
- 3.0.0b1Not yet releasedAll Editions
- 2.5.0p2All Editions
- 2.4.0p29All Editions
- 2.3.0p47CommunityProUltimateUltimate + MT