Uploaded image for project: 'CloudStack'
  1. CloudStack
  2. CLOUDSTACK-8641

When calling "update hostpassword" API it throws NPE if the update_passwd_on_host if not informed

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.6.0
    • None
    • API
    • Security Level: Public (Anyone can view this level - this is the default.)
    • None

    Description

      My apologies,

      I forgot to check the value of the Boolean attribute it's not informed. Was so eager to test it going all the way to the hosts that did not checking the default value.

      This call fails:

      (local) 🐵 > update hostpassword clusterid=53963278-f9d1-42d5-bab5-18c7ec466a0b username=root password=admin123
      Error 530: None
      cserrorcode = 9999
      errorcode = 530

      When it should not.

      But this one passes:

      (local) 🐵 > update hostpassword clusterid=53963278-f9d1-42d5-bab5-18c7ec466a0b username=root password=admin123 update_passwd_on_host=false
      success = true

      Attachments

        Issue Links

          Activity

            People

              wilder.rodrigues Wilder Rodrigues
              wilder.rodrigues Wilder Rodrigues
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: