GabrielBrascher commented on issue #4355: URL: https://github.com/apache/cloudstack/issues/4355#issuecomment-703769985
@rhtyd I discovered what caused this issue and how to reproduce. It happens only with Hosts that have an OutOfBand driver (e.g. IPMI or Redfish) enabled. The host password is passed on the response as _first letter + "****"_. For instance, a password "password" then it is set as "p****" on the response object. More details at [OutOfBandManagementResponse.java#L98](https://github.com/apache/cloudstack/blob/1d05fead49f5c856257a741b07122f5633d2e359/api/src/main/java/org/apache/cloudstack/api/response/OutOfBandManagementResponse.java#L98) Code: ```this.setPassword(outOfBandManagementConfig.getPassword().substring(0, 1) + "****");``` However, the String that represents the Host response JSON object is being processed as: ``` ..."outofbandmanagement":{"powerstate":"On","enabled":true,"driver":"redfish","address":"oob-kvm-node.address.net","port":"80","username":"root","password":"p*****}.... ``` Probably something related to special character handling that resulted on the lack of `"` on the String that is processed into a JSON object. I will be testing a few options to fix it. Keep you updated. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
